Discussion

Bug Report

2

nathanielbabiak 2023-08-16 04:05 (Edited)

Hi Timo,

Just wanted to point out that the WINDOW command always uses background zero (the background argument is not respected).

Any chance you could update the manual to mention it (just to avoid future headaches)? Since the code/site aren't really in need of updates, this seems like the easiest way...

Here's some code that shows what's happening:

BG 1
PAL 1
TEXT 0, 0, "ORANGE BACKGROUND"
WAIT 120

BG 0
PAL 0
TEXT 0, 0, "BLUE FOREGROUND"
WAIT 120

B = 1
WINDOW 0, 0, 20, 16, B
BG B
PAL 2
PRINT "GREEN BG" + STR$( B )
WAIT 120

B = 0
WINDOW 0, 0, 20, 16, B
BG B
PAL 2
PRINT "GREEN BG" + STR$( B )


Timo 2023-08-17 14:13

I‘ll check it soon!


Timo 2023-08-17 22:13

Uff, it seems the WINDOW command sets the current BG instead of the window BG :/


Log in to reply.