[AD] show_video_bitmap() MacOS X

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Thomas Harte pointed out that show_video_bitmap() does not update the 
bottom and right lines of pixels. Patch attached & applied. It's not clear 
from the documentation that this is really what it should be, but tests 
show this working and the original not working, so whatever.
SDL also seems to have more-or-less the same code, so at least we're not 
alone. ;)

Evert
Index: src/macosx/qzfull.m
===================================================================
RCS file: /cvsroot/alleg/allegro/src/macosx/qzfull.m,v
retrieving revision 1.19
diff -u -r1.19 qzfull.m
--- src/macosx/qzfull.m	1 May 2005 13:41:30 -0000	1.19
+++ src/macosx/qzfull.m	14 May 2005 11:31:56 -0000
@@ -349,7 +349,7 @@
    if ((bmp->w != gfx_quartz_full.w) || (bmp->h != gfx_quartz_full.h))
       return -1;
    
-   SetRect(&rect, 0, 0, bmp->w - 1, bmp->h - 1);
+   SetRect(&rect, 0, 0, bmp->w, bmp->h);
    while (!QDDone(screen_port));
    while (!QDDone(BMP_EXTRA(bmp)->port));
    LockPortBits(screen_port);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/