From ff5d59edfcccefe52285091937d1a3337fb38694 Mon Sep 17 00:00:00 2001 From: tobigun Date: Fri, 2 May 2008 12:23:52 +0000 Subject: 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 --- Game/Code/Menu/UDisplay.pas | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Game') 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); -- cgit v1.2.3