# HG changeset patch # User darkvater # Date 1100435843 0 # Node ID 675c52a63cb665be65f0b95fa35fd614ae3ab68c # Parent e1128b94f3fb094854ebf5882aa804a1de666ae3 (svn r586) -Fix: [1066114] Code error in win32.c Thanks Shai -Fix: ttd.vcproj change to hard-set compilation as C, as well as adding WITH_SDL to debug mode. If you don't have SDL just remove that. diff -r e1128b94f3fb -r 675c52a63cb6 ttd.vcproj --- a/ttd.vcproj Sun Nov 14 11:04:59 2004 +0000 +++ b/ttd.vcproj Sun Nov 14 12:37:23 2004 +0000 @@ -46,7 +46,8 @@ BrowseInformation="1" WarningLevel="3" SuppressStartupBanner="TRUE" - DebugInformationFormat="3"/> + DebugInformationFormat="3" + CompileAs="1"/> + CallingConvention="1" + CompileAs="1"/> + DebugInformationFormat="4" + CompileAs="1"/> more linux like :D - unsigned short w = 0; + unsigned short w = 0; int r = 0; byte ks[256]; - unsigned int scan=0; + unsigned int scan = 0; GetKeyboardState(ks); - r=ToAscii(wParam,scan,ks,&w,0); - if (r=0) w=0; + r = ToAscii(wParam, scan, ks, &w, 0); + if (r == 0) w = 0; // no translation was possible _pressed_key = w | MapWindowsKey(wParam) << 16; - } + if ((_pressed_key>>16) == ('D' | WKC_CTRL) && !_wnd.fullscreen) { _double_size ^= 1; _wnd.double_size = _double_size; ClientSizeChanged(_wnd.width, _wnd.height); MarkWholeScreenDirty(); } - break; + } break; case WM_SYSKEYDOWN: /* user presses F10 or Alt, both activating the title-menu */