Removed inner border on 9x machines

This commit is contained in:
andreja6
2018-06-02 12:06:19 -07:00
parent e5f7c7d1cc
commit 8f72e8e666
2 changed files with 7 additions and 4 deletions

View File

@@ -703,7 +703,7 @@ void Demo::onInit() {
//setDesiredFrameRate(FPSVal[index]); //setDesiredFrameRate(60);
@@ -1049,7 +1049,10 @@ void Demo::onGraphics(RenderDevice* rd) {
renderDevice->setLight(0, GLight::directional(lighting.lightDirection, lighting.lightColor)); renderDevice->setLight(0, GLight::directional(lighting.lightDirection, lighting.lightColor));
renderDevice->setAmbientLightColor(lighting.ambient); renderDevice->setAmbientLightColor(lighting.ambient);
rd->beforePrimitive();
dataModel->getWorkspace()->render(rd); dataModel->getWorkspace()->render(rd);
rd->afterPrimitive();
if(selectedInstance != NULL) if(selectedInstance != NULL)
{ {
PhysicalInstance* part = (PhysicalInstance*)selectedInstance; PhysicalInstance* part = (PhysicalInstance*)selectedInstance;
@@ -1400,7 +1403,7 @@ void Demo::main() {
RealTime now=0, lastTime=0; RealTime now=0, lastTime=0;
double simTimeRate = 1.0f; double simTimeRate = 1.0f;
float fps=30.f; float fps=30.0f;
RealTime desiredFrameDuration=1.0/fps; RealTime desiredFrameDuration=1.0/fps;
onInit(); onInit();
@@ -1500,7 +1503,7 @@ int main(int argc, char** argv) {
HWND hwndMain = CreateWindowEx( HWND hwndMain = CreateWindowEx(
WS_EX_ACCEPTFILES | WS_EX_CLIENTEDGE, WS_EX_ACCEPTFILES,
"mainHWND", "mainHWND",
"Main test", "Main test",
WS_OVERLAPPEDWINDOW, WS_OVERLAPPEDWINDOW,