Browse Source

Fix BitmapSource address range for FT810

James Bowman 6 years ago
parent
commit
e7daacc5c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gameduino2/base.py

+ 1 - 1
gameduino2/base.py

@@ -26,7 +26,7 @@ class GD2:
     def BitmapSize(self, filter,wrapx,wrapy,width,height):
         self.c4((8 << 24) | ((filter & 1) << 20) | ((wrapx & 1) << 19) | ((wrapy & 1) << 18) | ((width & 511) << 9) | ((height & 511) << 0))
     def BitmapSource(self, addr):
-        self.c4((1 << 24) | ((addr & 1048575) << 0))
+        self.c4((1 << 24) | ((addr & 8388607) << 0))
     def BitmapTransformA(self, a):
         self.c4((21 << 24) | ((a & 131071) << 0))
     def BitmapTransformB(self, b):