浏览代码

Merge branch 'master' of github.com:jamesbowman/gd2-asset

James Bowman 6 年之前
父节点
当前提交
d98f0eab5c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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):