From 73e440c16c215cb1050d72b22ece0b075b6794c6 Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 17 Mar 2012 22:34:06 +0000 Subject: [PATCH] Removed broken menu items. --- win/Caddoc.cpp | 2 -- win/LeoCAD.rc | 2 -- win/System.cpp | 6 +++--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/win/Caddoc.cpp b/win/Caddoc.cpp index 55fac029..e43567ec 100644 --- a/win/Caddoc.cpp +++ b/win/Caddoc.cpp @@ -19,8 +19,6 @@ IMPLEMENT_DYNCREATE(CCADDoc, CDocument) BEGIN_MESSAGE_MAP(CCADDoc, CDocument) //{{AFX_MSG_MAP(CCADDoc) //}}AFX_MSG_MAP -// ON_COMMAND(ID_FILE_SEND_MAIL, OnFileSendMail) -// ON_UPDATE_COMMAND_UI(ID_FILE_SEND_MAIL, OnUpdateFileSendMail) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// diff --git a/win/LeoCAD.rc b/win/LeoCAD.rc index 1b5527ff..7fcd7e44 100644 --- a/win/LeoCAD.rc +++ b/win/LeoCAD.rc @@ -225,7 +225,6 @@ BEGIN MENUITEM "&Save", ID_FILE_SAVE MENUITEM "Save &As...", ID_FILE_SAVE_AS MENUITEM "Save Picture...", ID_FILE_SAVEPICTURE - MENUITEM "Sen&d...", ID_FILE_SEND_MAIL POPUP "Export" BEGIN MENUITEM "3D Studio...", ID_FILE_EXPORT_3DSTUDIO @@ -306,7 +305,6 @@ BEGIN MENUITEM "Insert\tIns", ID_PIECE_INSERT MENUITEM "Delete\tDel", ID_PIECE_DELETE MENUITEM "Array...", ID_PIECE_ARRAY - MENUITEM "Mirror...", ID_PIECE_MIRROR, GRAYED MENUITEM "Minifig Wizard...", ID_PIECE_MINIFIGWIZARD MENUITEM "Copy Keys", ID_PIECE_COPYKEYS MENUITEM SEPARATOR diff --git a/win/System.cpp b/win/System.cpp index fde9db8b..908027ac 100644 --- a/win/System.cpp +++ b/win/System.cpp @@ -1522,9 +1522,9 @@ File* SystemImportClipboard() return clip; } -bool Sys_KeyDown (int key) +bool Sys_KeyDown(int key) { - return GetKeyState (KEY_CONTROL) < 0; + return GetKeyState(key) < 0; } @@ -1532,7 +1532,7 @@ void SystemPumpMessages() { MSG msg; - while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) + while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg);