Browse Source

Make mouse debug stable

master
Macoy Madson 5 months ago
parent
commit
5398a84e6e
  1. 2
      src/Presentation.cake

2
src/Presentation.cake

@ -318,7 +318,7 @@
(var mouse-x int 0)
(var mouse-y int 0)
(SDL_GetMouseState (addr mouse-x) (addr mouse-y))
(snprintf buffer (- (array-size buffer) 1) "Mouse: %d %d Percent of window: %f %f" mouse-x mouse-y
(snprintf buffer (- (array-size buffer) 1) "Mouse: %4d %4d Percent of window: %.2f %.2f" mouse-x mouse-y
(/ mouse-x (type-cast window-width float)) (/ mouse-y (type-cast window-height float)))
(render-string
renderer (addr ubuntu-mono-font-atlas) ubuntu-mono-texture

Loading…
Cancel
Save