diff options
Diffstat (limited to 'atari/gui.c')
-rwxr-xr-x | atari/gui.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/atari/gui.c b/atari/gui.c index c6dfb4f87..b887a7413 100755 --- a/atari/gui.c +++ b/atari/gui.c @@ -204,8 +204,12 @@ gui_create_browser_window(struct browser_window *bw, LOG(("new window: %p, bw: %p\n", gw, bw));
window_create(gw, bw, WIDGET_STATUSBAR|WIDGET_TOOLBAR|WIDGET_RESIZE|WIDGET_SCROLL );
- if( gw->root->handle ) {
- window_open( gw );
+ if( gw->root->handle ) { + GRECT pos = { + app.w/2-(cfg_width/2), app.h/2-(cfg_height/2), + cfg_width, cfg_height + };
+ window_open( gw , pos );
/* Recalculate windows browser area now */
browser_update_rects( gw );
tb_update_buttons( gw );
|