Commit 21cd3717 authored by markgrebe's avatar markgrebe
Browse files

Added missing developer keys for height and width


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@312 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
parent db2cfb89
......@@ -4,7 +4,7 @@
Mark Grebe <atarimac@cox.net>
*/
/* $Id: Menus.h,v 1.1.1.1 2004-06-16 02:30:30 markgrebe Exp $ */
/* $Id: Menus.h,v 1.2 2004-07-14 06:54:17 markgrebe Exp $ */
#import <Cocoa/Cocoa.h>
......@@ -43,5 +43,9 @@
- (IBAction)xStartMinus:(id)sender;
- (IBAction)yStartPlus:(id)sender;
- (IBAction)yStartMinus:(id)sender;
- (IBAction)widthPlus:(id)sender;
- (IBAction)widthMinus:(id)sender;
- (IBAction)heightPlus:(id)sender;
- (IBAction)heightMinus:(id)sender;
@end
......@@ -4,7 +4,7 @@
Mark Grebe <atarimac@cox.net>
*/
/* $Id: Menus.m,v 1.1.1.1 2004-06-16 02:30:30 markgrebe Exp $ */
/* $Id: Menus.m,v 1.2 2004-07-14 06:54:17 markgrebe Exp $ */
#import <Cocoa/Cocoa.h>
#import "Menus.h"
......@@ -278,6 +278,26 @@ static Menus *sharedInstance = nil;
[self pushKeyEvent:SDLK_PAGEDOWN:NO];
}
- (IBAction)widthPlus:(id)sender
{
[self pushKeyEvent:SDLK_END:YES];
}
- (IBAction)widthMinus:(id)sender
{
[self pushKeyEvent:SDLK_HOME:YES];
}
- (IBAction)heightPlus:(id)sender
{
[self pushKeyEvent:SDLK_PAGEUP:YES];
}
- (IBAction)heightMinus:(id)sender
{
[self pushKeyEvent:SDLK_PAGEDOWN:YES];
}
- (BOOL)validateMenuItem:(id <NSMenuItem>)menuItem
{
if (gameMenusEnabled) {
......
......@@ -13,6 +13,8 @@
biggerScreen = id;
fullScreen = id;
grabMouse = id;
heightMinus = id;
heightPlus = id;
leftJoyChange = id;
ntscPalMode = id;
openCart = id;
......@@ -25,6 +27,8 @@
speedLimit = id;
toggleGlFilter = id;
togglePallette = id;
widthMinus = id;
widthPlus = id;
xStartMinus = id;
xStartPlus = id;
yStartMinus = id;
......
......@@ -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: mainSDL.cxx,v 1.2 2004-07-10 13:20:36 stephena Exp $
// $Id: mainSDL.cxx,v 1.3 2004-07-14 06:54:17 markgrebe Exp $
//============================================================================
#include <fstream>
......@@ -469,6 +469,28 @@ void handleEvents()
theConsole->toggleFormat();
theDisplay->setupPalette();
}
#ifdef DEVELOPER_SUPPORT
else if(key == SDLK_END) // Command-Shift-End increases Width
{
theConsole->changeWidth(1);
theDisplay->resize(0);
}
else if(key == SDLK_HOME) // Command-Shift-Home decreases Width
{
theConsole->changeWidth(0);
theDisplay->resize(0);
}
else if(key == SDLK_PAGEUP) // Command-Shift-PageUp increases Height
{
theConsole->changeHeight(1);
theDisplay->resize(0);
}
else if(key == SDLK_PAGEDOWN) // Command-Shift-PageDown decreases Height
{
theConsole->changeHeight(0);
theDisplay->resize(0);
}
#endif
}
else if((mod & KMOD_META) && !(mod & KMOD_SHIFT))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment