diff --git a/devcpp/engine.layout b/devcpp/engine.layout index 8afb2ee..aabbad5 100644 --- a/devcpp/engine.layout +++ b/devcpp/engine.layout @@ -2,10 +2,10 @@ Order=-1 Focused=-1 [Editor_0] -Open=0 -Top=0 -CursorCol=2 -CursorRow=25 +Open=1 +Top=1 +CursorCol=55 +CursorRow=20 TopLine=1 LeftChar=1 [Editor_1] @@ -56,11 +56,11 @@ CursorRow=191 TopLine=158 LeftChar=1 [Editor_10] -Open=0 +Open=1 Top=0 CursorCol=6 -CursorRow=165 -TopLine=133 +CursorRow=135 +TopLine=86 LeftChar=1 [Editor_11] Open=0 @@ -70,15 +70,15 @@ CursorRow=16 TopLine=13 LeftChar=1 [Editor_12] -Open=1 +Open=0 Top=0 CursorCol=32 CursorRow=30 TopLine=4 LeftChar=1 [Editor_13] -Open=1 -Top=1 +Open=0 +Top=0 CursorCol=1 CursorRow=1 TopLine=1 @@ -106,14 +106,14 @@ Top=0 Open=0 Top=0 [Editor_20] -Open=0 +Open=1 Top=0 -CursorCol=24 -CursorRow=26 +CursorCol=17 +CursorRow=8 TopLine=1 LeftChar=1 [Editor_21] -Open=0 +Open=1 Top=0 CursorCol=1 CursorRow=1 diff --git a/engine/sdl/interface.c b/engine/sdl/interface.c index 0f66590..1f849a7 100644 --- a/engine/sdl/interface.c +++ b/engine/sdl/interface.c @@ -47,9 +47,7 @@ int interfaceInit() { /* set our video tickrate/refresh vars */ vid_tickrate = (1000.0f / getTablePairValueFloat(g_settings, "v_fps")); // target 60 tickrate g_cap_framerate = getTablePairValueInt(g_settings, "v_framecap"); - tick_time.n = getTablePairValueInt(g_settings, "tickrate"); - tick_time.m = tick_time.n/1000000; - tick_time.s = 0; + setPTime(&tick_time, 0, 0, getTablePairValueInt(g_settings, "tickrate")); g_accumulator = 0; vid_frames = 0; diff --git a/engine/sdl/timer.c b/engine/sdl/timer.c index c1d7636..ea0a58f 100644 --- a/engine/sdl/timer.c +++ b/engine/sdl/timer.c @@ -14,7 +14,7 @@ int64_t setPTime(struct PTime *time, int64_t seconds, int64_t milliseconds, int6 int64_t getPTime(struct PTime *time) { #if _WIN32 | _WIN64 - int ticks = SDL_GetTicks(); + int64_t ticks = SDL_GetTicks(); time->s = ticks/1000; time->m = ticks; time->n = ticks*1000000;