mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
Replace hardcoded functions names by __func__ macro
* while we're here, fix some possible bugs * and fix -Wformat=2 s/__FUNCTION__/__func__/g awawawa
This commit is contained in:
@@ -272,7 +272,7 @@ void Evdev_OpenDevice ( const char *path )
|
||||
ret = open( path, O_RDONLY | O_NONBLOCK );
|
||||
if( ret < 0 )
|
||||
{
|
||||
Con_Reportf( S_ERROR "Could not open input device %s: %s\n", path, strerror( errno ) );
|
||||
Con_Reportf( S_ERROR "Could not open input device %s: %s\n", path, strerror( errno ) );
|
||||
return;
|
||||
}
|
||||
Con_Printf( "Input device #%d: %s opened sucessfully\n", evdev.devices, path );
|
||||
|
||||
@@ -117,7 +117,7 @@ qboolean VID_SetMode( void )
|
||||
return true;
|
||||
}
|
||||
|
||||
rserr_t R_ChangeDisplaySettings( int width, int height, window_mode_t window_mode )
|
||||
rserr_t R_ChangeDisplaySettings( int width, int height, window_mode_t window_mode )
|
||||
{
|
||||
int render_w, render_h;
|
||||
|
||||
@@ -126,7 +126,7 @@ rserr_t R_ChangeDisplaySettings( int width, int height, window_mode_t window_m
|
||||
render_w = width;
|
||||
render_h = height;
|
||||
|
||||
Con_Reportf( "R_ChangeDisplaySettings: forced resolution to %dx%d)\n", width, height );
|
||||
Con_Reportf( "%s: forced resolution to %dx%d)\n", __func__, width, height );
|
||||
|
||||
VID_SetDisplayTransform( &render_w, &render_h );
|
||||
R_SaveVideoMode( width, height, render_w, render_h );
|
||||
|
||||
Reference in New Issue
Block a user