changeset 256:15ebddcb4fb8

del: debug echos
author Sam <sam@basx.dev>
date Wed, 24 May 2023 22:59:55 +0700
parents 595d0ed08f28
children d6d48c7cc141
files src/semicongine/platform/linux/window.nim src/semicongine/platform/windows/window.nim
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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()
--- 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)