mirror of
https://github.com/holub/mame
synced 2025-05-20 12:48:53 +03:00
Fix immediate crash on startup of GTK debugger
This commit is contained in:
parent
48e3d6cca0
commit
14981a97b5
@ -218,7 +218,10 @@ static void dview_size_allocate(GtkWidget *wdv, GtkAllocation *allocation)
|
||||
GdkGeometry x;
|
||||
x.max_width = size.x*dvc->fixedfont_width;
|
||||
x.max_height = -1;
|
||||
gdk_window_set_geometry_hints( wdv->window,&x, GDK_HINT_MAX_SIZE );
|
||||
if (wdv->window)
|
||||
{
|
||||
gdk_window_set_geometry_hints( wdv->window,&x, GDK_HINT_MAX_SIZE );
|
||||
}
|
||||
}
|
||||
debug_view_set_visible_position(dv->view, pos);
|
||||
debug_view_set_visible_size(dv->view, vsize);
|
||||
|
Loading…
Reference in New Issue
Block a user