src/video/nds/SDL_ndsvideo.c
branchgsoc2008_nds
changeset 2672 74ac057679d5
parent 2671 c3e7c0698cbb
child 2673 24a6b3588eac
     1.1 --- a/src/video/nds/SDL_ndsvideo.c	Thu Jun 12 02:38:49 2008 +0000
     1.2 +++ b/src/video/nds/SDL_ndsvideo.c	Tue Jun 17 08:26:36 2008 +0000
     1.3 @@ -63,7 +63,7 @@
     1.4  NDS_Available(void)
     1.5  {
     1.6      const char *envr = SDL_getenv("SDL_VIDEODRIVER");
     1.7 -    printf("NDS_Available()\n");
     1.8 +    /*printf("NDS_Available()\n");*/
     1.9      return (1);
    1.10  }
    1.11  
    1.12 @@ -77,7 +77,7 @@
    1.13  NDS_CreateDevice(int devindex)
    1.14  {
    1.15      SDL_VideoDevice *device;
    1.16 -    printf("NDS_CreateDevice(%d)\n", devindex);
    1.17 +    /*printf("NDS_CreateDevice(%d)\n", devindex);*/
    1.18  
    1.19      /* Initialize all variables that we clean on shutdown */
    1.20      device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
    1.21 @@ -116,7 +116,7 @@
    1.22      /* simple 256x192x16x60 for now */
    1.23      mode.w = 256;
    1.24      mode.h = 192;
    1.25 -    mode.format = SDL_PIXELFORMAT_ARGB1555;
    1.26 +    mode.format = SDL_PIXELFORMAT_RGB555;
    1.27      mode.refresh_rate = 60;
    1.28      mode.driverdata = NULL;
    1.29  
    1.30 @@ -142,8 +142,6 @@
    1.31      for (i = 0; i < 256 * 192; ++i) {
    1.32          ((u16 *) VRAM_A)[i] = i;
    1.33      }
    1.34 -    for (i = 0; i < 60; ++i)
    1.35 -        swiWaitForVBlank();
    1.36      
    1.37      /*NDS_SetDisplayMode(_this, &mode); */
    1.38      return 0;