matsondawson / vic20dart

Dart based Vic20 emulator
10 stars 2 forks source link

Colors not shown correctly in FireFox #7

Open nippur72 opened 9 years ago

nippur72 commented 9 years ago

If opened in FireFox, the startup screen is totally blue.

By giving POKE 36879,0 the screen turns blue with black border and black text.

mattdawson commented 9 years ago

It sounds like a issue in vic code, probably around rendering directly to bitmap data. Maybe related to alpha.

nippur72 commented 9 years ago

Yes, I verified and it's a kind of overflow problem with the white color 0xFFFFFFFF of the palette. Decreasing its alpha value to FE makes it work correctly.

Do you have any clue why this happens? It's a Firefox bug?

BTW, I've also found some palette entries aren't correct (e.g. light cyan), so I've replicated the palette from the VICE emulator. Sending a pull request.