Fixed the dark opengl screenshots and video mode not being initialized.
This commit is contained in:
parent
790a20ef7c
commit
e196a237d4
2 changed files with 5 additions and 3 deletions
4
TODO
4
TODO
|
@ -4,11 +4,11 @@
|
||||||
[DONE] [11/25/01] CD Audio.
|
[DONE] [11/25/01] CD Audio.
|
||||||
[DONE] [12/05/01] Menus.
|
[DONE] [12/05/01] Menus.
|
||||||
[DONE] [12/05/01] Progress bar.
|
[DONE] [12/05/01] Progress bar.
|
||||||
* Make vidmodes work.
|
[DONE] [12/06/01] Make vidmodes work.
|
||||||
* Debug "pure virtual method called"
|
* Debug "pure virtual method called"
|
||||||
|
* Command line options.
|
||||||
* Proper file loading/saving (ignore case, search certain directories) and
|
* Proper file loading/saving (ignore case, search certain directories) and
|
||||||
config handling (~/.avp/{ge, re, ad, md, pd}/?)
|
config handling (~/.avp/{ge, re, ad, md, pd}/?)
|
||||||
* Command line options.
|
|
||||||
* Joystick support.
|
* Joystick support.
|
||||||
* GL_EXT_secondary_color
|
* GL_EXT_secondary_color
|
||||||
* Revisit sound code. (Try AL_PITCH support, etc)
|
* Revisit sound code. (Try AL_PITCH support, etc)
|
||||||
|
|
|
@ -94,7 +94,7 @@ unsigned char *GetScreenShot24(int *width, int *height)
|
||||||
|
|
||||||
if (surface->flags & SDL_OPENGL) {
|
if (surface->flags & SDL_OPENGL) {
|
||||||
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||||
glReadPixels(0, 0, surface->w, surface->h, GL_RGB, GL_BYTE, buf);
|
glReadPixels(0, 0, surface->w, surface->h, GL_RGB, GL_UNSIGNED_BYTE, buf);
|
||||||
} else {
|
} else {
|
||||||
unsigned char *ptrd;
|
unsigned char *ptrd;
|
||||||
unsigned short int *ptrs;
|
unsigned short int *ptrs;
|
||||||
|
@ -339,6 +339,8 @@ int InitSDL()
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LoadDeviceAndVideoModePreferences();
|
||||||
|
|
||||||
surface = NULL;
|
surface = NULL;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue