summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-01 07:36:15 +0000
committertron <tron@openttd.org>2006-02-01 07:36:15 +0000
commit84fb96fe85e75b038b527471428189170021f8b7 (patch)
treea7d69d6390e8880d090f15560161694c3ce6126d /video
parent22dc05faf2219f6e3803f9cbff92249823bb11eb (diff)
downloadopenttd-84fb96fe85e75b038b527471428189170021f8b7.tar.xz
(svn r3511) More whitespace ([FS#46] by Rubidium)
Diffstat (limited to 'video')
-rw-r--r--video/sdl_v.c4
-rw-r--r--video/win32_v.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/video/sdl_v.c b/video/sdl_v.c
index 93ff90bbc..3b27c7ad6 100644
--- a/video/sdl_v.c
+++ b/video/sdl_v.c
@@ -140,7 +140,7 @@ static int GetAvailableVideoMode(int *w, int *h)
// is the wanted mode among the available modes?
for (i = 0; i != _num_resolutions; i++) {
- if(*w == _resolutions[i][0] && *h == _resolutions[i][1])
+ if (*w == _resolutions[i][0] && *h == _resolutions[i][1])
return 1;
}
@@ -348,7 +348,7 @@ static int PollEvent(void)
case SDL_QUIT:
// do not ask to quit on the main screen
if (_game_mode != GM_MENU) {
- if(_patches.autosave_on_exit) {
+ if (_patches.autosave_on_exit) {
DoExitSave();
return 0;
} else
diff --git a/video/win32_v.c b/video/win32_v.c
index 87533a551..989d7ff4a 100644
--- a/video/win32_v.c
+++ b/video/win32_v.c
@@ -709,7 +709,7 @@ static void Win32GdiMainLoop(void)
_wnd.running = true;
- while(true) {
+ for (;;) {
while (PeekMessage(&mesg, NULL, 0, 0, PM_REMOVE)) {
InteractiveRandom(); // randomness
TranslateMessage(&mesg);