From cc2f917cc50a94bf1014b2b37378230a4d501085 Mon Sep 17 00:00:00 2001 From: Simon Budig Date: Sun, 12 Nov 2000 00:43:15 +0000 Subject: [PATCH] fixed #10554 by requesting a window with the max. size of 2000-11-11 Simon Budig * app/interface.c: fixed #10554 by requesting a window with the max. size of 0.75*screen_width x 0.75*screen_height. These 75% value is taken from the shrink_wrap code and probably should be configurable... --- ChangeLog | 7 +++++++ app/display/gimpdisplayshell-draw.c | 6 ++++-- app/display/gimpdisplayshell.c | 6 ++++-- app/interface.c | 6 ++++-- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9e2a501a26..93a00bbd0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-11-11 Simon Budig + + * app/interface.c: fixed #10554 by requesting a window + with the max. size of 0.75*screen_width x 0.75*screen_height. + These 75% value is taken from the shrink_wrap code and + probably should be configurable... + 2000-11-11 Tor Lillqvist * plug-ins/common/gpb.c: Implement the noninteractive run mode for diff --git a/app/display/gimpdisplayshell-draw.c b/app/display/gimpdisplayshell-draw.c index 650efc84ae..ba8e34da1b 100644 --- a/app/display/gimpdisplayshell-draw.c +++ b/app/display/gimpdisplayshell-draw.c @@ -698,8 +698,10 @@ create_display_shell (GDisplay *gdisp, gint contextid; /* adjust the initial scale -- so that window fits on screen */ - s_width = gdk_screen_width (); - s_height = gdk_screen_height (); + /* the 75% value is the same as in gdisplay_shrink_wrap. It */ + /* probably should be a user-configurable option. */ + s_width = gdk_screen_width () * 0.75; + s_height = gdk_screen_height () * 0.75; scalesrc = SCALESRC (gdisp); scaledest = SCALEDEST (gdisp); diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c index 650efc84ae..ba8e34da1b 100644 --- a/app/display/gimpdisplayshell.c +++ b/app/display/gimpdisplayshell.c @@ -698,8 +698,10 @@ create_display_shell (GDisplay *gdisp, gint contextid; /* adjust the initial scale -- so that window fits on screen */ - s_width = gdk_screen_width (); - s_height = gdk_screen_height (); + /* the 75% value is the same as in gdisplay_shrink_wrap. It */ + /* probably should be a user-configurable option. */ + s_width = gdk_screen_width () * 0.75; + s_height = gdk_screen_height () * 0.75; scalesrc = SCALESRC (gdisp); scaledest = SCALEDEST (gdisp); diff --git a/app/interface.c b/app/interface.c index 650efc84ae..ba8e34da1b 100644 --- a/app/interface.c +++ b/app/interface.c @@ -698,8 +698,10 @@ create_display_shell (GDisplay *gdisp, gint contextid; /* adjust the initial scale -- so that window fits on screen */ - s_width = gdk_screen_width (); - s_height = gdk_screen_height (); + /* the 75% value is the same as in gdisplay_shrink_wrap. It */ + /* probably should be a user-configurable option. */ + s_width = gdk_screen_width () * 0.75; + s_height = gdk_screen_height () * 0.75; scalesrc = SCALESRC (gdisp); scaledest = SCALEDEST (gdisp);