Skip to content

Commit b0985a2

Browse files
committed
perf(display): no need to add dirty rectangles after resizing
1 parent 6824735 commit b0985a2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/display.c

-6
Original file line numberDiff line numberDiff line change
@@ -714,12 +714,7 @@ int Surface_GetHeight(LCUI_Surface surface)
714714
void Surface_Resize(LCUI_Surface surface, int w, int h)
715715
{
716716
if (display.driver) {
717-
LCUI_Rect rect;
718717
display.driver->resize(surface, w, h);
719-
rect.x = rect.y = 0;
720-
rect.width = w;
721-
rect.height = h;
722-
LCUIDisplay_InvalidateArea(&rect);
723718
}
724719
}
725720

@@ -833,7 +828,6 @@ static void OnSurfaceEvent(LCUI_Widget w, LCUI_WidgetEvent e, void *arg)
833828
if (sync_props) {
834829
Surface_Resize(surface, area.width, area.height);
835830
}
836-
LCUIDisplay_InvalidateArea(&area);
837831
break;
838832
}
839833
case LCUI_WEVENT_TITLE:

0 commit comments

Comments
 (0)