comparison gtk3/dw.c @ 2365:77686ad495ba

GTK3/4: Optimizing dirty list management. Keep list as short as possible.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 12 Mar 2021 22:53:41 +0000
parents 314d417e55c4
children 0286ac44d347
comparison
equal deleted inserted replaced
2364:9ae60d8f4ea3 2365:77686ad495ba
1507 1507
1508 if(work.window) 1508 if(work.window)
1509 { 1509 {
1510 DWExpose exp; 1510 DWExpose exp;
1511 int (*exposefunc)(HWND, DWExpose *, void *) = work.func; 1511 int (*exposefunc)(HWND, DWExpose *, void *) = work.func;
1512
1513 /* Remove the currently drawn widget from the dirty list */
1514 _dw_dirty_list = g_list_remove(_dw_dirty_list, widget);
1512 1515
1513 exp.x = exp.y = 0; 1516 exp.x = exp.y = 0;
1514 exp.width = gtk_widget_get_allocated_width(widget); 1517 exp.width = gtk_widget_get_allocated_width(widget);
1515 exp.height = gtk_widget_get_allocated_height(widget); 1518 exp.height = gtk_widget_get_allocated_height(widget);
1516 g_object_set_data(G_OBJECT(work.window), "_dw_cr", (gpointer)cr); 1519 g_object_set_data(G_OBJECT(work.window), "_dw_cr", (gpointer)cr);