# HG changeset patch # User Sam # Date 1684943995 -25200 # Node ID e54339222a57c402c40408b8a05c61e99486c14f # Parent 95ff8955c4496a8a883c8f6655ea1ff0433ec7b6 del: debug echos diff -r 95ff8955c449 -r e54339222a57 src/semicongine/platform/linux/window.nim --- a/src/semicongine/platform/linux/window.nim Wed May 24 22:39:06 2023 +0700 +++ b/src/semicongine/platform/linux/window.nim Wed May 24 22:59:55 2023 +0700 @@ -1,6 +1,7 @@ import std/options import std/tables import std/strformat +import std/logging import x11/xlib, @@ -30,7 +31,7 @@ " returned " & $value) proc XErrorLogger(display: PDisplay, event: PXErrorEvent): cint {.cdecl.} = - echo &"Xlib: {event[]}" + error &"Xlib: {event[]}" proc createWindow*(title: string): NativeWindow = checkXlibResult XInitThreads() diff -r 95ff8955c449 -r e54339222a57 src/semicongine/platform/windows/window.nim --- a/src/semicongine/platform/windows/window.nim Wed May 24 22:39:06 2023 +0700 +++ b/src/semicongine/platform/windows/window.nim Wed May 24 22:59:55 2023 +0700 @@ -58,7 +58,6 @@ currentEvents.add(Event(eventType: events.MouseMoved, x: GET_X_LPARAM(lParam), y: GET_Y_LPARAM(lParam))) of WM_MOUSEWHEEL: currentEvents.add(Event(eventType: events.MouseWheel, amount: float32(GET_WHEEL_DELTA_WPARAM(wParam)) / WHEEL_DELTA)) - echo GET_WHEEL_DELTA_WPARAM(wParam) else: return DefWindowProc(hwnd, uMsg, wParam, lParam)