mirror of https://github.com/stella-emu/stella.git
Got rid of SDL window-centering option, so the $#@#^ window will stay put
when switching between debugger and emulator mode. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@513 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
05d67232a6
commit
ee8e3fcd0c
|
@ -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: mainSDL.cxx,v 1.44 2005-06-16 00:55:56 stephena Exp $
|
// $Id: mainSDL.cxx,v 1.45 2005-06-16 16:36:48 urchlay Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
@ -152,7 +152,7 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
// Request that the SDL window be centered, if possible
|
// Request that the SDL window be centered, if possible
|
||||||
putenv("SDL_VIDEO_CENTERED=1");
|
// putenv("SDL_VIDEO_CENTERED=1");
|
||||||
|
|
||||||
// Create the framebuffer(s)
|
// Create the framebuffer(s)
|
||||||
if(!theOSystem->createFrameBuffer())
|
if(!theOSystem->createFrameBuffer())
|
||||||
|
|
|
@ -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: EventHandler.cxx,v 1.74 2005-06-16 00:55:58 stephena Exp $
|
// $Id: EventHandler.cxx,v 1.75 2005-06-16 16:36:49 urchlay Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -1317,6 +1317,10 @@ void EventHandler::leaveMenuMode()
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
void EventHandler::enterDebugMode()
|
void EventHandler::enterDebugMode()
|
||||||
{
|
{
|
||||||
|
// paranoia: this should never happen:
|
||||||
|
if(myState == S_DEBUGGER)
|
||||||
|
return;
|
||||||
|
|
||||||
myState = S_DEBUGGER;
|
myState = S_DEBUGGER;
|
||||||
myOSystem->createFrameBuffer();
|
myOSystem->createFrameBuffer();
|
||||||
myOSystem->debugger().reStack();
|
myOSystem->debugger().reStack();
|
||||||
|
|
Loading…
Reference in New Issue