forked from AuroraMiddleware/gtk
fpsoverlay: Fix fps overlay position
This commit is contained in:
parent
1d29d44ddb
commit
58e6c277b0
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user