[AD] popup_dialog() and scare_mouse()

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


Still the same story: replacing scare_mouse() by scare_mouse_area() in 
popup_dialog(). Patch applied (it also removes the useless +1).

-- 
Eric Botcazou
--- /home/eric/cvs/allegro/src/gui.c	Wed Nov 13 19:45:58 2002
+++ allegro/src/gui.c	Thu Nov 14 09:24:56 2002
@@ -686,11 +686,11 @@
    int ret;
    ASSERT(dialog);
 
-   bmp = create_bitmap(dialog->w+1, dialog->h+1); 
+   bmp = create_bitmap(dialog->w, dialog->h); 
 
    if (bmp) {
-      scare_mouse();
-      blit(screen, bmp, dialog->x, dialog->y, 0, 0, dialog->w+1, dialog->h+1);
+      scare_mouse_area(dialog->x, dialog->y, dialog->w, dialog->h);
+      blit(screen, bmp, dialog->x, dialog->y, 0, 0, dialog->w, dialog->h);
       unscare_mouse();
    }
    else
@@ -699,8 +699,8 @@
    ret = do_dialog(dialog, focus_obj);
 
    if (bmp) {
-      scare_mouse();
-      blit(bmp, screen, 0, 0, dialog->x, dialog->y, dialog->w+1, dialog->h+1);
+      scare_mouse_area(dialog->x, dialog->y, dialog->w, dialog->h);
+      blit(bmp, screen, 0, 0, dialog->x, dialog->y, dialog->w, dialog->h);
       unscare_mouse();
       destroy_bitmap(bmp);
    }


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