diff options
Diffstat (limited to 'app-emulation/vice/files/vice-2.0-gtk-bigendian-fix.patch')
-rw-r--r-- | app-emulation/vice/files/vice-2.0-gtk-bigendian-fix.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/app-emulation/vice/files/vice-2.0-gtk-bigendian-fix.patch b/app-emulation/vice/files/vice-2.0-gtk-bigendian-fix.patch deleted file mode 100644 index e83b92439dbe..000000000000 --- a/app-emulation/vice/files/vice-2.0-gtk-bigendian-fix.patch +++ /dev/null @@ -1,57 +0,0 @@ -Index: src/arch/unix/x11/gnome/uicolor.c -=================================================================== ---- src/arch/unix/x11/gnome/uicolor.c (revision 19058) -+++ src/arch/unix/x11/gnome/uicolor.c (working copy) -@@ -101,14 +101,12 @@ - - for (i = 0; i < palette->num_entries; i++) { - palette_entry_t color = palette->entries[i]; -- DWORD color_pixel; -- -- unsigned char *col = (unsigned char *)&color_pixel; -- col[0] = color.red ; -- col[1] = color.green; -- col[2] = color.blue ; -- video_render_setphysicalcolor(((video_canvas_t*)c)->videoconfig, i, -- color_pixel, 24); -+ DWORD color_pixel = -+ (DWORD)color.red | -+ (DWORD)color.green << 8 | -+ (DWORD)color.blue << 16; -+ video_render_setphysicalcolor(((video_canvas_t*)c)->videoconfig, i, -+ color_pixel, 24); - } - return 0; - } -@@ -116,27 +114,11 @@ - static void uicolor_init_video_colors() - { - short i; -- DWORD pixelr, pixelg, pixelb; - -- for (i = 0; i < 256; i++) -- { -- unsigned char* pixelrbyte = (unsigned char*)&pixelr; -- unsigned char* pixelgbyte = (unsigned char*)&pixelg; -- unsigned char* pixelbbyte = (unsigned char*)&pixelb; -- pixelrbyte[0] = i; -- pixelrbyte[1] = 0; -- pixelrbyte[2] = 0; -- pixelgbyte[0] = 0; -- pixelgbyte[1] = i; -- pixelgbyte[2] = 0; -- pixelbbyte[0] = 0; -- pixelbbyte[1] = 0; -- pixelbbyte[2] = i; -- -- video_render_setrawrgb(i, -- pixelr, -- pixelg, -- pixelb); -+ for (i = 0; i < 256; i++) { -+ video_render_setrawrgb(i, -+ (DWORD)i, (DWORD)i << 8, (DWORD)i << 16 -+ ); - } - - video_render_initraw(); |