Ticket #8106: sdl_gl.diff

File sdl_gl.diff, 900 bytes (added by SF/luke_br, 17 years ago)

SDL/GL: Small bug fixed

Line 
157a58,59
2> SDL_Surface *glEnd; // Black rectangle at end of the GL screen
3> SDL_Rect blackrect2; // Needed for blitting the above surface
4257a260,272
5> glEnd = SDL_CreateRGBSurface(SDL_SWSURFACE, _screenWidth,
6> // 320x256 texture (black end)
7> 256-_screenHeight-_screenStart,
8> 16,
9> fb2gl.screen->format->Rmask,
10> fb2gl.screen->format->Gmask,
11> fb2gl.screen->format->Bmask,
12> fb2gl.screen->format->Amask);
13>
14> blackrect2.x = 0;
15> blackrect2.y = 0;
16> blackrect2.w = _screenWidth;
17> blackrect2.h = 256-_screenHeight-_screenStart;
18289d303
19< SDL_Rect blackrect2 = {0, _screenStart, _screenWidth, 15};
20350,352c364,366
21<
22< SDL_FillRect(sdl_tmpscreen, &blackrect2, 0);
23< fb2gl.blit16(sdl_tmpscreen,1,&blackrect2,0,_screenHeight);
24---
25>
26> SDL_FillRect(glEnd, &blackrect2, 0);
27> fb2gl.blit16(glEnd,1,&blackrect2,0,_screenHeight+_screenStart);