Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2006-06-19 08:04:31 +0400
committerMatt Ebb <matt@mke3.net>2006-06-19 08:04:31 +0400
commit3e272f6797494d87c1d9c2c3a5220065736525d7 (patch)
treea26eb70064f136752a02c4877e7600b77a6d4ebc /intern
parent92522f420214d0db9a4b69833917685e093f4d59 (diff)
* Patch from Ed Halley:
"Swaps left and right bytes of small cursors for Carbon on Intel." This fixes garbled cursors on Intel Mac builds. Tested on my G4 too and it works fine.
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_WindowCarbon.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_WindowCarbon.cpp b/intern/ghost/intern/GHOST_WindowCarbon.cpp
index 5ddacd5f21f..30c88ccd777 100644
--- a/intern/ghost/intern/GHOST_WindowCarbon.cpp
+++ b/intern/ghost/intern/GHOST_WindowCarbon.cpp
@@ -690,8 +690,14 @@ GHOST_TSuccess GHOST_WindowCarbon::setWindowCustomCursorShape(GHOST_TUns8 *bitma
if (!m_customCursor) return GHOST_kFailure;
for (y=0; y<16; y++) {
+#if !defined(__LITTLE_ENDIAN__)
m_customCursor->data[y] = uns16ReverseBits((bitmap[2*y]<<0) | (bitmap[2*y+1]<<8));
m_customCursor->mask[y] = uns16ReverseBits((mask[2*y]<<0) | (mask[2*y+1]<<8));
+#else
+ m_customCursor->data[y] = uns16ReverseBits((bitmap[2*y+1]<<0) | (bitmap[2*y]<<8));
+ m_customCursor->mask[y] = uns16ReverseBits((mask[2*y+1]<<0) | (mask[2*y]<<8));
+#endif
+
}
m_customCursor->hotSpot.h = hotX;