関数内でローカル変数やグローバル変数にアクセスできなかった問題を修正,BGFILL,SPCHK,SPVARなど実装

This commit is contained in:
otya128 committed 2015-08-29 16:23:41 +09:00
1 parent d05166a3b9
commit 4525728dd5
8 files changed
+215 -34

No files matched your search

+13
View File
@@ -132,4 +132,17 @@ class BG
{
this.r = rot;
}
void fill(int x, int y, int x2, int y2, int screendata)
{
import std.algorithm;
int id = screendata & 4095;
if(x > x2) swap(x, x2);
if(y > y2) swap(y, y2);
for(; y <= y2; y++)
chip[x + y * width .. x2 + y * width] = BGChip(id);
/*for(int i = x; i <= x2; i++)
{
chip[i + y * width].i = id;
}*/
}
}