Ticket #8106: fb2opengl.h.diff

File fb2opengl.h.diff, 686 bytes (added by SF/luke_br, 17 years ago)

GL functions update

Line 
136a37
2> #define FB2GL_16BIT 64 // 16 BIT Color Depth
3186,190c187,190
4< if ((flags & FB2GL_FS) && !screen) {
5< screen = SDL_SetVideoMode(width, height, 0, SDL_HWSURFACE | SDL_OPENGL | SDL_GL_DOUBLEBUFFER | SDL_FULLSCREEN);
6< }
7< else if (!screen) {
8< screen = SDL_SetVideoMode(width, height, 0, SDL_HWPALETTE | SDL_HWSURFACE | SDL_OPENGL | SDL_GL_DOUBLEBUFFER);
9---
10> if (!screen) {
11> screen = SDL_SetVideoMode(width, height, (flags & FB2GL_16BIT? 16: 0),
12> SDL_HWPALETTE | SDL_HWSURFACE | SDL_OPENGL | SDL_GL_DOUBLEBUFFER |
13> (flags & FB2GL_FS? SDL_FULLSCREEN: 0));
14192a193,194
15> fprintf(stderr,"Screen BitsPerPixel: %d\n",screen->format->BitsPerPixel);
16>