comparison Renderer/Engine/viewerSDL.cc @ 988:0b6f8c82625a akira

fix for double buffer
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 02 Oct 2010 03:48:39 +0900
parents df5185513c2d
children 8024a3a44832
comparison
equal deleted inserted replaced
987:5eb651827ae3 988:0b6f8c82625a
45 45
46 void 46 void
47 ViewerSDL::clean_pixels() 47 ViewerSDL::clean_pixels()
48 { 48 {
49 //bzero(pixels, sizeof(int)*width*height); 49 //bzero(pixels, sizeof(int)*width*height);
50 #if !UGA
51 SDL_FillRect(screen,NULL,SDL_MapRGB(screen->format,0,0,0)); 50 SDL_FillRect(screen,NULL,SDL_MapRGB(screen->format,0,0,0));
52 #endif
53 } 51 }
54 52
55 void 53 void
56 ViewerSDL::clear_screen() 54 ViewerSDL::clear_screen()
57 { 55 {