DrawImage vs DrawImageRotated scale parameter.

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

DrawImage vs DrawImageRotated scale parameter.

Postby Accensus » Thu Sep 02, 2021 3:02 am

This is not a question for the Scripting forum.

The question is: whoever added the latter function, why is scaling for DrawImageRotated reversed like with TEXTURES? That is, 2.0 makes things smaller, not larger, unlike DrawImage where 0.5 means half size and 2.0 means twice as big. It's inconsistent with any other Draw* call in the entire SBar class as far as I know. Is there even a valid reason for this? Cause the inconsistency legitimately bothers the shit out of me.
Last edited by Accensus on Thu Sep 02, 2021 5:05 am, edited 1 time in total.
Accensus
 
Joined: 11 Feb 2016

Re: DrawImage vs DrawImageRotated scale parameter.

Postby Graf Zahl » Thu Sep 02, 2021 4:28 am

How about 'it slipped through without anybody noticing.' ?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: DrawImage vs DrawImageRotated scale parameter.

Postby Accensus » Thu Sep 02, 2021 4:38 am

Sounds reasonable enough. Thanks.
Accensus
 
Joined: 11 Feb 2016


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests