SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > SRB2 Discussion > Bug Reports

Reply
 
Thread Tools Search this Thread
Old 07-10-2017   #1
LunarDestroyer
 
LunarDestroyer's Avatar
Default V_SMALLSCALEPATCH causes text to be cut off or disappear

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.
Attached Thumbnails
Click image for larger version

Name:	srb20012.png
Views:	104
Size:	32.8 KB
ID:	10906  
LunarDestroyer is offline   Reply With Quote
Old 07-11-2017   #2
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

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 by Monster Iestyn; 07-11-2017 at 12:33 AM.
Monster Iestyn is offline   Reply With Quote
Old 07-11-2017   #3
LunarDestroyer
 
LunarDestroyer's Avatar
Default

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?
Attached Thumbnails
Click image for larger version

Name:	srb20016.png
Views:	88
Size:	42.8 KB
ID:	10915  

Last edited by LunarDestroyer; 07-11-2017 at 04:28 AM.
LunarDestroyer is offline   Reply With Quote
Old 07-11-2017   #4
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

...Yeah, I get the feeling nobody's really tried v.drawString with the scale flags that much before now.
Monster Iestyn is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:06 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.