Preventing textdraw resolution problem?
#1

Hello guys, I see that some servers have their tips/tricks to prevent the textdraw resolution problem, their textdraws display well in all resolutions and I really want to know the way they do it, can somebody please tell me?
Thanks in advanced.
Reply
#2

Use only whole numbers for the coordinates. GetPlayerCameraAspectRatio may also have been used.
Reply
#3

I think if I don't use decimals, the coordinates would be different from the original and of course, it won't display well.
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
Use only whole numbers for the coordinates. GetPlayerCameraAspectRatio may also have been used.
From wiki:
pawn Код:
The return value of this function represents the value of the "widescreen" option in the game's display settings, not the actual aspect ratio of the player's display.
As far as i know nobody changes that option, and by default its off if im not wrong (meaning it will return 5:4).
Reply
#5

So which is the best way? Do you guys know?
Reply
#6

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
From wiki:
pawn Код:
The return value of this function represents the value of the "widescreen" option in the game's display settings, not the actual aspect ratio of the player's display.
As far as i know nobody changes that option, and by default its off if im not wrong (meaning it will return 5:4).
Why would nobody change that option? I guess everyone with a modern Screen should do so otherwise the game just looks weird.

Also it doesn't affect the TextDraw grid. Not even the radar is "fixed" to be a circle, it remains an egg.
Reply
#7

It's not smart as a developer to consider the probability of when the screen aspect ratio changes. If I were you, I would check the aspect ratio no matter what in order to get a proper result. (if needed)

Otherwise I can't say anything besides keeping the Floats at whole numbers when you position the textdraws. Is there anything specific you struggle with, let us know. Perhaps we can give a specific tip regarding it. (don't forget pics)
Reply
#8

I'm trying it, thanks!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)