diff src/video/fbcon/SDL_fbevents.c @ 2669:e27bdcc80744 gsoc2008_nds

First commit. Added header configs for DS as well as a Makefile. Initial work on framebuffer video driver, currently not functioning as desired.
author Darren Alton <dalton@stevens.edu>
date Tue, 10 Jun 2008 06:45:39 +0000
parents c121d94672cb
children e1da92da346c
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fbevents.c	Wed Apr 23 06:27:10 2008 +0000
+++ b/src/video/fbcon/SDL_fbevents.c	Tue Jun 10 06:45:39 2008 +0000
@@ -545,9 +545,8 @@
                 if (select(fd + 1, &fdset, 0, 0, &tv) < 1) {
                     break;
                 }
-            }
-            while ((read(fd, &ch, sizeof(ch)) == sizeof(ch)) &&
-                   ((ch == 0xFA) || (ch == 0xAA)));
+            } while ((read(fd, &ch, sizeof(ch)) == sizeof(ch)) &&
+                     ((ch == 0xFA) || (ch == 0xAA)));
 
             /* Experimental values (Logitech wheelmouse) */
 #ifdef DEBUG_MOUSE
@@ -1113,8 +1112,7 @@
                 }
             }
         }
-    }
-    while (posted);
+    } while (posted);
 }
 
 void