1
0

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

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

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;
}*/
}
}