Ticket #8251: sdl_gl.3.patch

File sdl_gl.3.patch, 1.3 KB (added by SF/luke_br, 21 years ago)

Patch on latest CVS source code

Line 
1224a225,262
2>
3> tmpBlackRect.x = 0;
4> tmpBlackRect.y = 0;
5> tmpBlackRect.w = _screenWidth;
6> tmpBlackRect.h = 256-_screenHeight-_glScreenStart;
7>
8> if (!_adjustAspectRatio) {
9> // Don't use the whole screen (black borders)
10> fb2gl.init(0, 0, 0, 15, _glFlags);
11> _glScreenStart = _glBorderHeight;
12>
13> // Top black border
14> SDL_Rect blackrect = {
15> 0,
16> 0, // _glScreenStart,
17> _screenWidth,
18> _newShakePos + _glScreenStart
19> };
20>
21> SDL_FillRect(tmpSurface, &blackrect, 0);
22> fb2gl.blit16(tmpSurface, 1, &blackrect, 0, 0);
23>
24> // Bottom black border
25> int _glBottomOfGameScreen = _screenHeight +
26> _glScreenStart + _currentShakePos;
27>
28> tmpBlackRect.h = _glBottomOfTexture -
29> _glBottomOfGameScreen;
30>
31> SDL_FillRect(tmpSurface, &tmpBlackRect, 0);
32> fb2gl.blit16(tmpSurface, 1, &tmpBlackRect, 0,
33> _glBottomOfGameScreen);
34> } else {
35> // Use the whole screen
36> fb2gl.init(0, 0, 0, 72, _glFlags);
37> _glScreenStart = 0;
38> }
39>
40245,250c283
41<
42< tmpBlackRect.x = 0;
43< tmpBlackRect.y = 0;
44< tmpBlackRect.w = _screenWidth;
45< tmpBlackRect.h = 256-_screenHeight-_glScreenStart;
46<
47---
48>
49549c582
50< if (_adjustAspectRatio) {
51---
52> if (!_adjustAspectRatio) {
53552a586
54>