equal
deleted
inserted
replaced
13 #include "hal.h" |
13 #include "hal.h" |
14 #include "variables.h" |
14 #include "variables.h" |
15 #include "table/control_codes.h" |
15 #include "table/control_codes.h" |
16 #include "fontcache.h" |
16 #include "fontcache.h" |
17 #include "genworld.h" |
17 #include "genworld.h" |
|
18 #include "debug.h" |
18 |
19 |
19 #ifdef _DEBUG |
20 #ifdef _DEBUG |
20 bool _dbg_screen_rect; |
21 bool _dbg_screen_rect; |
21 #endif |
22 #endif |
22 |
23 |
1996 return |
1997 return |
1997 (_screen.width == w && _screen.height == h) || |
1998 (_screen.width == w && _screen.height == h) || |
1998 _video_driver->change_resolution(w, h); |
1999 _video_driver->change_resolution(w, h); |
1999 } |
2000 } |
2000 |
2001 |
2001 void ToggleFullScreen(bool fs) {_video_driver->toggle_fullscreen(fs);} |
2002 void ToggleFullScreen(bool fs) |
|
2003 { |
|
2004 _video_driver->toggle_fullscreen(fs); |
|
2005 if (_fullscreen != fs && _num_resolutions == 0) { |
|
2006 DEBUG(misc, 0) ("Could not find a suitable fullscreen resolution."); |
|
2007 } |
|
2008 } |
2002 |
2009 |
2003 static int CDECL compare_res(const void *pa, const void *pb) |
2010 static int CDECL compare_res(const void *pa, const void *pb) |
2004 { |
2011 { |
2005 int x = ((const uint16*)pa)[0] - ((const uint16*)pb)[0]; |
2012 int x = ((const uint16*)pa)[0] - ((const uint16*)pb)[0]; |
2006 if (x != 0) return x; |
2013 if (x != 0) return x; |