diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2008-08-11 19:30:01 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2008-08-11 19:30:01 +0000 |
commit | fcb57d3c3fcbe6bd51c6d82636b3353aeb160377 (patch) | |
tree | b446ea64e55fd5e1c5dca01b110cd0dbddda57d8 /app-emulation/vice/files | |
parent | Version bump (diff) | |
download | historical-fcb57d3c3fcbe6bd51c6d82636b3353aeb160377.tar.gz historical-fcb57d3c3fcbe6bd51c6d82636b3353aeb160377.tar.bz2 historical-fcb57d3c3fcbe6bd51c6d82636b3353aeb160377.zip |
version bump - bug #234043 with patches and ebuild submitted by Karl Aloritias
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'app-emulation/vice/files')
-rw-r--r-- | app-emulation/vice/files/vice-2.0-gnome-palemu.patch | 13 | ||||
-rw-r--r-- | app-emulation/vice/files/vice-2.0-gtk-bigendian-fix.patch | 57 |
2 files changed, 70 insertions, 0 deletions
diff --git a/app-emulation/vice/files/vice-2.0-gnome-palemu.patch b/app-emulation/vice/files/vice-2.0-gnome-palemu.patch new file mode 100644 index 000000000000..1f8a4a9ceb28 --- /dev/null +++ b/app-emulation/vice/files/vice-2.0-gnome-palemu.patch @@ -0,0 +1,13 @@ +Index: src/video/video-resources-pal.c +=================================================================== +--- src/video/video-resources-pal.c (revision 19048) ++++ src/video/video-resources-pal.c (working copy) +@@ -180,7 +180,7 @@ + &video_resources.pal_scanlineshade, set_pal_scanlineshade, NULL }, + { "PALBlur", 500, RES_EVENT_NO, NULL, + &video_resources.pal_blur, set_pal_blur, NULL }, +- { "PALMode", VIDEO_RESOURCE_PAL_MODE_TRUE, RES_EVENT_NO, NULL, ++ { "PALMode", VIDEO_RESOURCE_PAL_MODE_FAST, RES_EVENT_NO, NULL, + &video_resources.pal_mode, set_pal_mode, NULL }, + { "PALOddLinePhase", 1250, RES_EVENT_NO, NULL, + &video_resources.pal_oddlines_phase, set_pal_oddlinesphase, NULL }, 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 new file mode 100644 index 000000000000..e83b92439dbe --- /dev/null +++ b/app-emulation/vice/files/vice-2.0-gtk-bigendian-fix.patch @@ -0,0 +1,57 @@ +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(); |