Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: NevilleKemp

26. May 2012, 07:51:21 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Foreground image size
Pages: [1]
Print
Author Topic: Foreground image size  (Read 806 times)
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« on: 28. February 2007, 05:31:07 pm »

When a canvas is resized, the foreground image isn't resized properly : I think it's *inversely" sized, e.g. I init my canvas to 800x600 everything fine, then I maximize it to 1280x1024 and it is way too big.. now I unmaximize it to 800x600 and it is 2x too small..
Logged
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« Reply #1 on: 28. February 2007, 07:12:47 pm »

In my HUD, I needed the following to get correct resizing behavior.
Code:
@Override
    public final void setSize( int canvasWidth, int canvasHeight, float resX, float resY )
    {
        super.setSize( canvasWidth, canvasHeight, canvasWidth, canvasHeight );

but I didn't need to do anything special for my scene graph.
Logged

Kevin
"It may not seem like a big deal, but ignorance of character encoding issues leads to insidious code rot akin to y2k."
http://stackoverflow.com/users/3474/sylvarking
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #2 on: 28. February 2007, 07:45:18 pm »

I will have a look at it.

Marvin

EDIT: Should work properly.
« Last Edit: 22. March 2007, 12:06:42 am by Marvin Fröhlich » Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic