Fixed [2.1.18] v.drawFill with V_SNAPTO*

Status
Not open for further replies.

Sryder

'That brit'
Kart Krew™️
If you have, for example, a v.drawFill that goes from 0 to 320 on x and from 150 to 200 on y. The drawFill will not be affected by V_SNAPTOTOP or V_SNAPTOBOTTOM. Meaning you can never have that fill along the very bottom of the screen in not aspect correct resolutions. It's because the changes to it drawing aren't performed because it's drawing it across the entire width of the screen. I think the same probably happens with a vertical drawFill too.

Example:
Code:
v.drawFill(0, 163, 320, 37, 31+V_SNAPTOBOTTOM)
Gives a result of:
9n6cnSc.png


Also, the top fill in that image doesn't even need V_SNAPTOTOP to be at the very top of the screen so something is wrong there as well.
 
Last edited by a moderator:
IIRC most video flags don't work with v.drawFill in general. The screen darken when voting in SUGOI is done with a scaled black 1x1 patch instead of a fill because V_TRANS50 wouldn't work on it.
 
The V_SNAPTO* flags are meant to work with drawFill though. When using any fill that is within the screen edges completely, they work.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top