aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-28 14:00:53 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-28 14:00:53 +0000
commitcbf062e0f808c56c51932a06ae015db764d0e056 (patch)
tree7ac98d7ef8ee0d645fc22327fafe41232e32d43a /src/menu
parentf4e974f904307d6120c243c6c180e4429fe12708 (diff)
downloadusdx-cbf062e0f808c56c51932a06ae015db764d0e056.tar.gz
usdx-cbf062e0f808c56c51932a06ae015db764d0e056.tar.xz
usdx-cbf062e0f808c56c51932a06ae015db764d0e056.zip
Adding hints to possible endian related problems. No code change, yet. Only suggestions for test.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1420 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/menu')
-rw-r--r--src/menu/UDisplay.pas4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/menu/UDisplay.pas b/src/menu/UDisplay.pas
index 0f8344d7..cd8241ae 100644
--- a/src/menu/UDisplay.pas
+++ b/src/menu/UDisplay.pas
@@ -336,6 +336,10 @@ begin
GetMem(ScreenData, RowSize * ScreenH);
glReadPixels(0, 0, ScreenW, ScreenH, GL_RGB, GL_UNSIGNED_BYTE, ScreenData);
+// on big endian machines (powerpc) this may need to be changed to
+// Needs to be tests. KaMiSchi Sept 2008
+// in this case one may have to add " glext, " to the list of used units
+// glReadPixels(0, 0, ScreenW, ScreenH, GL_BGR, GL_UNSIGNED_BYTE, ScreenData);
Surface := SDL_CreateRGBSurfaceFrom(
ScreenData, ScreenW, ScreenH, 24, RowSize,
$0000FF, $00FF00, $FF0000, 0);