Slick Forums

Discuss the Slick 2D Library
It is currently Fri Aug 23, 2019 3:11 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Oct 19, 2011 9:18 pm 
Offline

Joined: Mon Sep 12, 2011 4:56 pm
Posts: 8
I would like to have access to ScalableGame's X and Y scaling factor so I can properly scale Themable Widget Library graphics.

Here is the extra code:
Code:
   public float getScalingFactorX() {
      return targetWidth / normalWidth;
   }
   
   public float getScalingFactorY() {
      return targetHeight / normalHeight;
   }


Thanks!


Top
 Profile  
 
PostPosted: Sat May 12, 2012 9:27 pm 
Offline
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1482
Added getScaleX/getScaleY to bitbucket dev branch.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group