aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-05-02 12:23:52 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-05-02 12:23:52 +0000
commitff5d59edfcccefe52285091937d1a3337fb38694 (patch)
tree5c7e2ad6e787fa5e1a86a6c3c3905ee04eb36412
parentaecdb6a2e201c7d21ac5f6beed935e8bca3179e1 (diff)
downloadusdx-ff5d59edfcccefe52285091937d1a3337fb38694.tar.gz
usdx-ff5d59edfcccefe52285091937d1a3337fb38694.tar.xz
usdx-ff5d59edfcccefe52285091937d1a3337fb38694.zip
screenshots should be fetched from screen in RGB and not BGR mode.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1051 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--Game/Code/Menu/UDisplay.pas5
1 files changed, 2 insertions, 3 deletions
diff --git a/Game/Code/Menu/UDisplay.pas b/Game/Code/Menu/UDisplay.pas
index 19c42483..9ce81983 100644
--- a/Game/Code/Menu/UDisplay.pas
+++ b/Game/Code/Menu/UDisplay.pas
@@ -347,11 +347,10 @@ begin
RowSize := ((ScreenW*3 + (Align-1)) div Align) * Align;
GetMem(ScreenData, RowSize * ScreenH);
- glReadPixels(0, 0, ScreenW, ScreenH, GL_BGR, GL_UNSIGNED_BYTE, ScreenData);
+ glReadPixels(0, 0, ScreenW, ScreenH, GL_RGB, GL_UNSIGNED_BYTE, ScreenData);
Surface := SDL_CreateRGBSurfaceFrom(
ScreenData, ScreenW, ScreenH, 24, RowSize,
- //$0000FF, $00FF00, $FF0000, 0);
- $FF0000, $00FF00, $0000FF, 0);
+ $0000FF, $00FF00, $FF0000, 0);
//Success := WriteJPGImage(FileName, Surface, 95);
//Success := WriteBMPImage(FileName, Surface);