From e0e0a3648b4c3fa349ddd1639851407c7411a3b8 Mon Sep 17 00:00:00 2001 From: stephena Date: Tue, 25 Mar 2008 13:11:34 +0000 Subject: [PATCH] Fixed minor compile issue in OSX. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1444 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/gui/Dialog.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stella/src/gui/Dialog.cxx b/stella/src/gui/Dialog.cxx index a6f9808f7..4b45edd7b 100644 --- a/stella/src/gui/Dialog.cxx +++ b/stella/src/gui/Dialog.cxx @@ -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: Dialog.cxx,v 1.59 2008-03-23 16:22:46 stephena Exp $ +// $Id: Dialog.cxx,v 1.60 2008-03-25 13:11:34 stephena Exp $ // // Based on code from ScummVM - Scumm Interpreter // Copyright (C) 2002-2004 The ScummVM project @@ -549,8 +549,8 @@ void Dialog::addOKCancelBGroup(WidgetArray& wid, const GUI::Font& font) { int buttonWidth = font.getStringWidth("Cancel") + 15; int buttonHeight = font.getLineHeight() + 4; -#ifndef MAC_OSX ButtonWidget* b; +#ifndef MAC_OSX b = new ButtonWidget(this, font, _w - 2 * (buttonWidth + 7), _h - buttonHeight - 10, buttonWidth, buttonHeight, "OK", kOKCmd); wid.push_back(b);