forked from AuroraMiddleware/gtk
Use gtk_widget_queue_draw_area instead of gtk_widget_draw in shooter
This commit is contained in:
parent
b2b6bb17ac
commit
5995cdb370
@ -205,7 +205,9 @@ int main (int argc, char **argv)
|
|||||||
window = info->window->window;
|
window = info->window->window;
|
||||||
|
|
||||||
gtk_widget_show_now (info->window);
|
gtk_widget_show_now (info->window);
|
||||||
gtk_widget_draw (info->window, &(info->window->allocation));
|
gtk_widget_queue_draw_area (info->window,
|
||||||
|
info->window->allocation.x, info->window->allocation.y,
|
||||||
|
info->window->allocation.width, info->window->allocation.height);
|
||||||
|
|
||||||
while (gtk_events_pending ())
|
while (gtk_events_pending ())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user