Question about 'legal256.bmp' file

vitamin

I made my own so-called banner but it's not centered on screen when rF starts. Is this related to file's size maybe? Or is it something different?
 
I guess the point of the left top corner of the legal256.bmp is defined with the distances in pixel from the top and left border of the screen, probably in dependance of the used resolution, in the code.

Similar to the positions of buttons, textures, ... in the OSC-file.
 
The code probably assumes the image is 512 wide by 384 high rather than checking each time it runs.
So the X coordinate would be resolutionX/2 - 256 instead of resolutionX/2 - imageWidth/2.
 

Back
Top