[libshumate] map-layer: Add missing queue_draw



commit a076bb2d436643812012900deed5bdcf3c733f7b
Author: James Westman <james jwestman net>
Date:   Thu Aug 4 23:54:08 2022 -0500

    map-layer: Add missing queue_draw
    
    Fixes a bug introduced in 6abf6278d1fe44e570859f4605a631ec27f89361 where
    the map layer would not always be redrawn.

 shumate/shumate-map-layer.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/shumate/shumate-map-layer.c b/shumate/shumate-map-layer.c
index b10ebd9..4aba849 100644
--- a/shumate/shumate-map-layer.c
+++ b/shumate/shumate-map-layer.c
@@ -356,6 +356,8 @@ recompute_grid (ShumateMapLayer *self)
   self->tile_initial_row = tile_initial_row;
   self->required_tiles_columns = required_columns;
   self->required_tiles_rows = required_rows;
+
+  gtk_widget_queue_draw (GTK_WIDGET (self));
 }
 
 static gboolean


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