V_SMALLSCALEPATCH causes text to be cut off or disappear

Status
Not open for further replies.
As the title says, if V_SMALLSCALEPATCH is used with v.drawString, it will disappear if placed past the midway point of the screen, or be cut off if the length of the text causes it to cross the midway point of the screen.


Example: This piece of code:

v.drawString(300, 35, "Upgrade", V_YELLOWMAP|V_SMALLSCALEPATCH)

Creates the screenshot in the attachments


v.drawNum doesn't appear to cause this.
 

Attachments

  • srb20012.png
    srb20012.png
    32.8 KB · Views: 300
I think I've kind of a guess as to what's going on here...

If you remove V_SMALLSCALEPATCH, do you see "UP" right next to the screen's right edge?

EDIT: I suspect the same thing will happen with V_MEDSCALEPATCH, it might not be the flag at fault but v.drawString itself internally.
 
Last edited:
Yeah, that's how it goes. There's enough space for at least part of the A to be drawn, but the function probably goes out of it's way to cut it off, without taking into account the video flags. (I tested, and MEDSCALEPATCH does in fact also produce this result)


On a fairly unrelated note, I noticed THIS occurs in openGL. Is this somehow related, or just a completely separate problem?
 

Attachments

  • srb20016.png
    srb20016.png
    42.8 KB · Views: 283
Last edited:
Status
Not open for further replies.

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

Back
Top