]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
New color structure
authorJavier Sancho <jsf@jsancho.org>
Fri, 13 Dec 2019 15:22:09 +0000 (16:22 +0100)
committerJavier Sancho <jsf@jsancho.org>
Fri, 13 Dec 2019 15:22:09 +0000 (16:22 +0100)
irrlicht/bindings/video.scm
irrlicht/video.scm

index 994543d811836e6bf545457cf894f4398d77fc3f..ec117b3a751dada87f166fd40503136cd05b880e 100644 (file)
@@ -56,7 +56,7 @@
 
 ;; scolor struct
 (define-public scolor
-  (list uint32 uint32 uint32 uint32))
+  (list uint8 uint8 uint8 uint8))
 
 ;; Driver functions
 (define-foreign begin-scene
index 000373ddb28229e2508694c56ab67fbe0a4c3db5..7fc99fa87b363cc9c363c1a03a9d6e76eede70d3 100644 (file)
@@ -39,7 +39,7 @@
   (ffi-video:begin-scene driver
                          (bool->integer back-buffer)
                          (bool->integer z-buffer)
-                         (make-c-struct ffi-video:scolor color)
+                         (make-c-struct ffi-video:scolor (reverse color))
                          video-data
                          (if (null? source-rect)
                              %null-pointer