From 95d31ad231800026e7b0a44ddda42c584dad5671 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 26 Aug 2013 22:09:45 -0400 Subject: Make the origin the top-left corner of the window again. --- 2d/texture.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to '2d/texture.scm') diff --git a/2d/texture.scm b/2d/texture.scm index 19c26c8..8df5e51 100644 --- a/2d/texture.scm +++ b/2d/texture.scm @@ -141,6 +141,8 @@ (bitmap (freeimage-load image-type filename)) (32bit-bitmap (freeimage-convert-to-32-bits bitmap))) (freeimage-unload bitmap) + ;; Need to flip because y-axis is reversed. + (freeimage-flip-vertical 32bit-bitmap) 32bit-bitmap)) (define (load-texture filename) -- cgit v1.2.3