- bugfix for map editor mouse position in windows

- set windows projects to compile using SSE2 compiler setting
This commit is contained in:
Mark Vejvoda
2010-07-01 15:53:07 +00:00
parent 0f15e9ecf3
commit c85b8baa49
6 changed files with 9 additions and 5 deletions

View File

@@ -122,6 +122,7 @@
StringPooling="true" StringPooling="true"
ExceptionHandling="2" ExceptionHandling="2"
RuntimeLibrary="0" RuntimeLibrary="0"
EnableEnhancedInstructionSet="2"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
PrecompiledHeaderThrough="" PrecompiledHeaderThrough=""
PrecompiledHeaderFile="c:\temp\release\$(TargetName).pch" PrecompiledHeaderFile="c:\temp\release\$(TargetName).pch"

View File

@@ -122,6 +122,7 @@
StringPooling="true" StringPooling="true"
ExceptionHandling="2" ExceptionHandling="2"
RuntimeLibrary="0" RuntimeLibrary="0"
EnableEnhancedInstructionSet="2"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
PrecompiledHeaderThrough="" PrecompiledHeaderThrough=""
PrecompiledHeaderFile="c:\temp\release\$(TargetName).pch" PrecompiledHeaderFile="c:\temp\release\$(TargetName).pch"

View File

@@ -142,7 +142,7 @@
ExceptionHandling="2" ExceptionHandling="2"
RuntimeLibrary="0" RuntimeLibrary="0"
EnableFunctionLevelLinking="true" EnableFunctionLevelLinking="true"
EnableEnhancedInstructionSet="0" EnableEnhancedInstructionSet="2"
FloatingPointModel="0" FloatingPointModel="0"
WarningLevel="2" WarningLevel="2"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"

View File

@@ -113,7 +113,7 @@
ExceptionHandling="2" ExceptionHandling="2"
RuntimeLibrary="0" RuntimeLibrary="0"
EnableFunctionLevelLinking="true" EnableFunctionLevelLinking="true"
EnableEnhancedInstructionSet="0" EnableEnhancedInstructionSet="2"
FloatingPointModel="0" FloatingPointModel="0"
RuntimeTypeInfo="true" RuntimeTypeInfo="true"
WarningLevel="3" WarningLevel="3"

View File

@@ -123,7 +123,7 @@
ExceptionHandling="2" ExceptionHandling="2"
RuntimeLibrary="0" RuntimeLibrary="0"
EnableFunctionLevelLinking="true" EnableFunctionLevelLinking="true"
EnableEnhancedInstructionSet="0" EnableEnhancedInstructionSet="2"
FloatingPointModel="0" FloatingPointModel="0"
RuntimeTypeInfo="true" RuntimeTypeInfo="true"
WarningLevel="3" WarningLevel="3"

View File

@@ -304,7 +304,7 @@ MainWindow::MainWindow()
//#ifndef WIN32 //#ifndef WIN32
timer = new wxTimer(this); timer = new wxTimer(this);
timer->Start(100); timer->Start(250);
//#endif //#endif
glCanvas->SetFocus(); glCanvas->SetFocus();
} }
@@ -379,7 +379,7 @@ void MainWindow::onTimer(wxTimerEvent &event) {
wxPaintEvent paintEvent; wxPaintEvent paintEvent;
onPaint(paintEvent); onPaint(paintEvent);
#ifdef WIN32 #ifdef WIN32
Update(); //Update();
#endif #endif
} }
@@ -915,12 +915,14 @@ GlCanvas::GlCanvas(MainWindow *mainWindow, wxWindow *parent, int *args)
} }
void translateCoords(wxWindow *wnd, int &x, int &y) { void translateCoords(wxWindow *wnd, int &x, int &y) {
/*
#ifdef WIN32 #ifdef WIN32
int cx, cy; int cx, cy;
wnd->GetPosition(&cx, &cy); wnd->GetPosition(&cx, &cy);
x += cx; x += cx;
y += cy; y += cy;
#endif #endif
*/
} }
void GlCanvas::onMouseDown(wxMouseEvent &event) { void GlCanvas::onMouseDown(wxMouseEvent &event) {