mirror of https://github.com/stella-emu/stella.git
Crap, a segfault bug crept in with the last commit.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1169 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
f48ea59ca6
commit
b4531c331a
|
@ -13,7 +13,7 @@
|
|||
// See the file "license" for information on usage and redistribution of
|
||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
//
|
||||
// $Id: FrameBuffer.cxx,v 1.103 2006-12-03 01:13:45 stephena Exp $
|
||||
// $Id: FrameBuffer.cxx,v 1.104 2006-12-03 01:24:34 stephena Exp $
|
||||
//============================================================================
|
||||
|
||||
#include <sstream>
|
||||
|
@ -71,10 +71,10 @@ void FrameBuffer::initialize(const string& title, uInt32 width, uInt32 height,
|
|||
|
||||
if(SDL_Init(initflags) < 0)
|
||||
return;
|
||||
}
|
||||
|
||||
// Set window title and icon
|
||||
setWindowTitle(title);
|
||||
setWindowIcon();
|
||||
// Erase old contents
|
||||
cls();
|
||||
|
||||
// Query the desktop size
|
||||
// This is really the job of SDL
|
||||
|
@ -82,16 +82,12 @@ void FrameBuffer::initialize(const string& title, uInt32 width, uInt32 height,
|
|||
myOSystem->getScreenDimensions(dwidth, dheight);
|
||||
myDesktopDim.w = dwidth; myDesktopDim.h = dheight;
|
||||
|
||||
// Set fullscreen flag
|
||||
mySDLFlags = myOSystem->settings().getBool("fullscreen") ? SDL_FULLSCREEN : 0;
|
||||
|
||||
// Get the aspect ratio for the display if it's been enabled
|
||||
theAspectRatio = 1.0;
|
||||
if(useAspect) setAspectRatio();
|
||||
}
|
||||
|
||||
// Erase old contents
|
||||
cls();
|
||||
// Set fullscreen flag
|
||||
mySDLFlags = myOSystem->settings().getBool("fullscreen") ? SDL_FULLSCREEN : 0;
|
||||
|
||||
// Set the available scalers for this framebuffer, based on current eventhandler
|
||||
// state and the maximum size of a window for the current desktop
|
||||
|
@ -103,6 +99,10 @@ void FrameBuffer::initialize(const string& title, uInt32 width, uInt32 height,
|
|||
setScaler(scaler);
|
||||
initSubsystem();
|
||||
|
||||
// Set window title and icon
|
||||
setWindowTitle(title);
|
||||
setWindowIcon();
|
||||
|
||||
// And refresh the display
|
||||
myOSystem->eventHandler().refreshDisplay();
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
// See the file "license" for information on usage and redistribution of
|
||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
//
|
||||
// $Id: LauncherDialog.cxx,v 1.58 2006-12-02 23:25:55 stephena Exp $
|
||||
// $Id: LauncherDialog.cxx,v 1.59 2006-12-03 01:24:34 stephena Exp $
|
||||
//
|
||||
// Based on code from ScummVM - Scumm Interpreter
|
||||
// Copyright (C) 2002-2004 The ScummVM project
|
||||
|
@ -154,7 +154,6 @@ LauncherDialog::LauncherDialog(OSystem* osystem, DialogContainer* parent,
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
LauncherDialog::~LauncherDialog()
|
||||
{
|
||||
cerr << "LauncherDialog::~LauncherDialog()\n";
|
||||
delete myOptions;
|
||||
delete myGameList;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue