[gnome-tetravex/arnaudb/wip/gtk4: 25/49] Looks like queue_draw_area is gone.




commit 2baad8d4fc4c690c4feb3b4a014e82aff1df494e
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Feb 21 03:49:58 2020 +0100

    Looks like queue_draw_area is gone.

 src/puzzle-view.vala | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/src/puzzle-view.vala b/src/puzzle-view.vala
index 38272cf..e92fd63 100644
--- a/src/puzzle-view.vala
+++ b/src/puzzle-view.vala
@@ -209,18 +209,20 @@ private class PuzzleView : Gtk.DrawingArea
 
     private void redraw_tile (TileImage image)
     {
-        queue_draw_area ((int) image.x - theme.overdraw_left,
-                         (int) image.y - theme.overdraw_top,
-                         (int) tilesize + theme.overdraw_left + theme.overdraw_right,
-                         (int) tilesize + theme.overdraw_top + theme.overdraw_bottom);
+        queue_draw ();
+//        queue_draw_area ((int) image.x - theme.overdraw_left,
+//                         (int) image.y - theme.overdraw_top,
+//                         (int) tilesize + theme.overdraw_left + theme.overdraw_right,
+//                         (int) tilesize + theme.overdraw_top + theme.overdraw_bottom);
     }
 
     private void queue_draw_tile (uint8 x, uint8 y)
     {
-        queue_draw_area ((int) sockets_xs [x, y] - theme.overdraw_left,
-                         (int) sockets_ys [x, y] - theme.overdraw_top,
-                         (int) tilesize + theme.overdraw_left + theme.overdraw_right,
-                         (int) tilesize + theme.overdraw_top + theme.overdraw_bottom);
+        queue_draw ();
+//        queue_draw_area ((int) sockets_xs [x, y] - theme.overdraw_left,
+//                         (int) sockets_ys [x, y] - theme.overdraw_top,
+//                         (int) tilesize + theme.overdraw_left + theme.overdraw_right,
+//                         (int) tilesize + theme.overdraw_top + theme.overdraw_bottom);
     }
 
     private void move_tile_to_location (TileImage image, uint x, uint y, double duration = 0)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]