afritz1 / OpenTESArena

Open-source re-implementation of The Elder Scrolls: Arena.
MIT License
988 stars 68 forks source link

AUTOMAP.IMG palette makes quill cursor invisible #42

Closed afritz1 closed 8 years ago

afritz1 commented 8 years ago

The built-in palette in AUTOMAP.IMG is supposedly the intended palette for the quill cursor POINTER.IMG, but it causes the cursor's pixels to all be black (treated as transparent by SDL). Other built-in palettes like in BLAKMRSH.IMG and BUYSPELL.IMG don't make the cursor invisible (though they're far from the correct colors), so I have a feeling that the palette in AUTOMAP.IMG is somehow a special case.

See these for some relevant code: AutomapPanel.cpp#L128 IMGFile.cpp#L226 TextureManager.cpp#L168

The default palette PAL.COL is used with the quill cursor for now as a placeholder.

afritz1 commented 8 years ago

Fixed in commit https://github.com/afritz1/OpenTESArena/commit/8d4b6801970e7a6a009989d91160d525309d614a. It was because of an incorrect offset in the image data.