# HG changeset patch # User Sam # Date 1684943995 -25200 # Node ID 15ebddcb4fb8ac89b06cb40bf03e0cd626c9a97a # Parent 595d0ed08f2852aa71869599715564752e867f06 del: debug echos diff -r 595d0ed08f28 -r 15ebddcb4fb8 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 595d0ed08f28 -r 15ebddcb4fb8 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)