Mercurial > hg > Members > kono > Cerium
diff Renderer/Engine/viewerSDL.cc @ 895:bed529c55eda
add alignment of classes in SPU
width and height are automatically set in frame buffer API
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 16 Jul 2010 17:23:49 +0900 |
parents | 4f77768d7a7f |
children | df5185513c2d |
line wrap: on
line diff
--- a/Renderer/Engine/viewerSDL.cc Fri Jul 16 00:13:45 2010 +0900 +++ b/Renderer/Engine/viewerSDL.cc Fri Jul 16 17:23:49 2010 +0900 @@ -27,6 +27,9 @@ SDL_Quit(); exit(1); } + this->width = screen->w; + this->height = screen->h; + this->bpp = screen->format->BitsPerPixel; p = (Uint32*)manager->allocate(screen->pitch*height); bitmap = SDL_CreateRGBSurfaceFrom((void *)p,