- 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"
ExceptionHandling="2"
RuntimeLibrary="0"
EnableEnhancedInstructionSet="2"
UsePrecompiledHeader="0"
PrecompiledHeaderThrough=""
PrecompiledHeaderFile="c:\temp\release\$(TargetName).pch"

View File

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

View File

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

View File

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

View File

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

View File

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