Fix bug 0002555: "No GC" alert when resizing the window

We don't need to touch the GC when invalidating anyway,
so just drop those calls.
This commit is contained in:
François Revol 2017-08-21 02:29:58 +02:00
parent 8c29c675c4
commit aedd9b5513

View File

@ -1000,8 +1000,6 @@ beos_window_invalidate_area(struct gui_window *g, const struct rect *rect)
return NSERROR_OK;
}
nsbeos_current_gc_set(g->view);
if (rect != NULL) {
//XXX +1 ??
g->view->Invalidate(BRect(rect->x0, rect->y0,
@ -1010,7 +1008,6 @@ beos_window_invalidate_area(struct gui_window *g, const struct rect *rect)
g->view->Invalidate();
}
nsbeos_current_gc_set(NULL);
g->view->UnlockLooper();
return NSERROR_OK;