Ticket #11988: mednafen-update.patch

File mednafen-update.patch, 1.6 KB (added by adamw@…, 18 years ago)
  • files/patch-src_selblur.cpp

     
     1--- src/selblur.cpp.orig        2007-05-18 12:56:11.000000000 -0400
     2+++ src/selblur.cpp     2007-05-18 12:58:04.000000000 -0400
     3@@ -32,8 +32,8 @@
     4 // spec->dest[x + y * spec->dest_pitch32] = (r << spec->red_shift) | (g << spec->green_shift) | (b << spec->blue_shift);
     5 //}
     6 
     7-#define GetSourcePixel(_x, _y, _r, _g, _b) { uint32 __pixel = source[_x + _y * source_pitch32]; _r = (__pixel >> red_shift) & 0xFF;    \
     8-       _g = (__pixel >> green_shift) & 0xFF; _b = (__pixel >> blue_shift) & 0xFF; }
     9+#define GetSourcePixel(_x, _y, _r, _g, _b) { uint32 __mypixel = source[_x + _y * source_pitch32]; _r = (__mypixel >> red_shift) & 0xFF;        \
     10+       _g = (__mypixel >> green_shift) & 0xFF; _b = (__mypixel >> blue_shift) & 0xFF; }
     11 
     12 #define SetDestPixel(_x, _y, _r, _g, _b) dest[_x + _y * dest_pitch32] = (_r << red_shift) | (_g << green_shift) | (_b << blue_shift);
     13 
  • Portfile

     
    44
    55name            mednafen
    66version         0.8.1
     7revision        1
    78platforms       darwin
    89categories      emulators games
    910maintainers     adamw@freebsd.org
     
    3132# Just an FYI: even though it takes a billion years to compile
    3233# src/gba/arm.cpp, it *does* finish eventually.
    3334
     35patchfiles      patch-src_selblur.cpp
     36
    3437worksrcdir      ${name}
    3538configure.env   LDFLAGS="-L${prefix}/lib" \
    3639                CPPFLAGS="-I${prefix}/include"