Removed inner border on 9x machines
This commit is contained in:
9
main.cpp
9
main.cpp
@@ -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->setAmbientLightColor(lighting.ambient);
|
||||
|
||||
rd->beforePrimitive();
|
||||
dataModel->getWorkspace()->render(rd);
|
||||
rd->afterPrimitive();
|
||||
|
||||
if(selectedInstance != NULL)
|
||||
{
|
||||
PhysicalInstance* part = (PhysicalInstance*)selectedInstance;
|
||||
@@ -1400,7 +1403,7 @@ void Demo::main() {
|
||||
|
||||
RealTime now=0, lastTime=0;
|
||||
double simTimeRate = 1.0f;
|
||||
float fps=30.f;
|
||||
float fps=30.0f;
|
||||
|
||||
RealTime desiredFrameDuration=1.0/fps;
|
||||
onInit();
|
||||
@@ -1500,7 +1503,7 @@ int main(int argc, char** argv) {
|
||||
|
||||
|
||||
HWND hwndMain = CreateWindowEx(
|
||||
WS_EX_ACCEPTFILES | WS_EX_CLIENTEDGE,
|
||||
WS_EX_ACCEPTFILES,
|
||||
"mainHWND",
|
||||
"Main test",
|
||||
WS_OVERLAPPEDWINDOW,
|
||||
|
||||
Reference in New Issue
Block a user