DREAMWEB: Further migration to screen size constants.

This commit is contained in:
D G Turner 2012-11-30 10:49:25 +00:00
parent 396f45f551
commit 06cc3b051a
4 changed files with 16 additions and 17 deletions

View file

@ -42,12 +42,12 @@ void DreamWebEngine::showRain() {
uint16 offset = (rain.w3 - rain.b5) & 511;
rain.w3 = offset;
const uint8 *src = frameData + offset;
uint8 *dst = workspace() + y * 320 + x;
uint8 *dst = workspace() + y * kScreenwidth + x;
for (uint16 j = 0; j < size; ++j) {
uint8 v = src[j];
if (v != 0)
*dst = v;
dst += 320-1; // advance diagonally
dst += kScreenwidth-1; // advance diagonally
}
}