fpsoverlay: Fix fps overlay position

This commit is contained in:
Timm Bäder 2019-07-10 08:26:00 +02:00
parent 1d29d44ddb
commit 58e6c277b0

View File

@ -159,7 +159,7 @@ gtk_fps_overlay_snapshot (GtkInspectorOverlay *overlay,
double fps;
char *fps_string;
graphene_rect_t bounds;
gboolean has_bounds = FALSE;
gboolean has_bounds;
int width, height;
double overlay_opacity;
@ -207,6 +207,8 @@ gtk_fps_overlay_snapshot (GtkInspectorOverlay *overlay,
if (!child ||
!gtk_widget_compute_bounds (child, widget, &bounds))
has_bounds = gtk_widget_compute_bounds (widget, widget, &bounds);
else
has_bounds = gtk_widget_compute_bounds (child, widget, &bounds);
}
else
{