mirror of https://github.com/stella-emu/stella.git
Fixed a bug regarding resizing the window using the '-' and '=' keys. The
call to resize the window needed to be after the call which tells the window manager the maximum size of the window. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@157 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
c41a53ac7c
commit
890db3b3e5
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//
|
//
|
||||||
// $Id: mainX11.cxx,v 1.36 2002-12-05 16:46:14 stephena Exp $
|
// $Id: mainX11.cxx,v 1.37 2002-12-15 04:10:56 bwmott Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
@ -985,17 +985,17 @@ void resizeWindow(int mode)
|
||||||
int width = settings->theWidth * settings->theWindowSize * 2;
|
int width = settings->theWidth * settings->theWindowSize * 2;
|
||||||
int height = settings->theHeight * settings->theWindowSize;
|
int height = settings->theHeight * settings->theWindowSize;
|
||||||
|
|
||||||
XWindowChanges wc;
|
|
||||||
wc.width = width;
|
|
||||||
wc.height = height;
|
|
||||||
XConfigureWindow(theDisplay, theWindow, CWWidth | CWHeight, &wc);
|
|
||||||
|
|
||||||
XSizeHints hints;
|
XSizeHints hints;
|
||||||
hints.flags = PSize | PMinSize | PMaxSize;
|
hints.flags = PSize | PMinSize | PMaxSize;
|
||||||
hints.min_width = hints.max_width = hints.width = width;
|
hints.min_width = hints.max_width = hints.width = width;
|
||||||
hints.min_height = hints.max_height = hints.height = height;
|
hints.min_height = hints.max_height = hints.height = height;
|
||||||
XSetWMNormalHints(theDisplay, theWindow, &hints);
|
XSetWMNormalHints(theDisplay, theWindow, &hints);
|
||||||
|
|
||||||
|
XWindowChanges wc;
|
||||||
|
wc.width = width;
|
||||||
|
wc.height = height;
|
||||||
|
XConfigureWindow(theDisplay, theWindow, CWWidth | CWHeight, &wc);
|
||||||
|
|
||||||
theRedrawEntireFrameIndicator = true;
|
theRedrawEntireFrameIndicator = true;
|
||||||
|
|
||||||
// A resize probably means that the window is no longer centered
|
// A resize probably means that the window is no longer centered
|
||||||
|
|
Loading…
Reference in New Issue