diff src/video/nds/SDL_ndsvideo.c @ 2672:74ac057679d5 gsoc2008_nds

NDS video driver is now functional, using software rendering and framebuffer.
author Darren Alton <dalton@stevens.edu>
date Tue, 17 Jun 2008 08:26:36 +0000
parents c3e7c0698cbb
children 24a6b3588eac
line wrap: on
line diff
--- a/src/video/nds/SDL_ndsvideo.c	Thu Jun 12 02:38:49 2008 +0000
+++ b/src/video/nds/SDL_ndsvideo.c	Tue Jun 17 08:26:36 2008 +0000
@@ -63,7 +63,7 @@
 NDS_Available(void)
 {
     const char *envr = SDL_getenv("SDL_VIDEODRIVER");
-    printf("NDS_Available()\n");
+    /*printf("NDS_Available()\n");*/
     return (1);
 }
 
@@ -77,7 +77,7 @@
 NDS_CreateDevice(int devindex)
 {
     SDL_VideoDevice *device;
-    printf("NDS_CreateDevice(%d)\n", devindex);
+    /*printf("NDS_CreateDevice(%d)\n", devindex);*/
 
     /* Initialize all variables that we clean on shutdown */
     device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
@@ -116,7 +116,7 @@
     /* simple 256x192x16x60 for now */
     mode.w = 256;
     mode.h = 192;
-    mode.format = SDL_PIXELFORMAT_ARGB1555;
+    mode.format = SDL_PIXELFORMAT_RGB555;
     mode.refresh_rate = 60;
     mode.driverdata = NULL;
 
@@ -142,8 +142,6 @@
     for (i = 0; i < 256 * 192; ++i) {
         ((u16 *) VRAM_A)[i] = i;
     }
-    for (i = 0; i < 60; ++i)
-        swiWaitForVBlank();
     
     /*NDS_SetDisplayMode(_this, &mode); */
     return 0;