Having a weird image scaling problem with WindowsLook

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
toysnob
Just popping in
Just popping in
Posts: 13
Joined: Fri Feb 18, 2005 01:15

Having a weird image scaling problem with WindowsLook

Postby toysnob » Mon Mar 28, 2005 00:10

I am having weird scaling issues when trying to run the demo app that I downloaded as part of the lastest CVS state (today).

I modified the theme to be WindowsLook instead of the TaharezLook, simply by substituting the WindowsLook for the imageset and scheme files, then I rebuilt it.

Below is a link to a screen grab. Notice that the titlebar seems really stretched in height and the close (x) button seems large and pixelated? Meanwhile the mouse cursor seems about normal, although slightly blurry.

Also the font for the FPS up top and left also looks wrong. Although, the window borders on the bottom, left and right do look correct.

Is there anything special I need to do to tell CEGUI to scale the imageset right?

Screenshot of scaling problem

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Having a weird image scaling problem with WindowsLook

Postby CrazyEddie » Mon Mar 28, 2005 07:25

I can confirm that your screenshot looks as it should (or it at least it looks the same here, anyway ;) ).

CE.

User avatar
toysnob
Just popping in
Just popping in
Posts: 13
Joined: Fri Feb 18, 2005 01:15

Re: Having a weird image scaling problem with WindowsLook

Postby toysnob » Mon Mar 28, 2005 16:12

Ok well what I don't understand is that when I open up the imageset file in PaintShop, all of the UI elements are much smaller, so it seems that CEGUI is scaling some of them, like the titlebar and the close X button for instance.

Is that correct? Is there anyway for me to force CEGUI to render them at their original/normal size?

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Having a weird image scaling problem with WindowsLook

Postby lindquist » Mon Mar 28, 2005 17:40

It really not that weird.

The current FrameWindow code resizes the titlebar so the Font that's used in it does'nt get clipped. (that would be an ugly titlebar).

the TaharezLook only resizes the titlebar and sets the closebutton size to match the imagery.
WindowsLook on the other hand also resizes the closebutton to fit the titlebar.

You cannot force any other behavior without changing the FrameWindow code.

I'm working on a patch that makes the titlebar use a full nine images instead of the current three.
this way only the interior gradient would get stretched and the edges will stay sharp.

This has been bugging me for a while too, and I can't really see anything but a gain from it so this should be done soon.

(It's also my excuse for playing with the rendercode)

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Having a weird image scaling problem with WindowsLook

Postby lindquist » Mon Mar 28, 2005 21:35

ok. I'm done with WindowsLook. IMHO the blurring on TaharezLook is so minor that I'm not going to bother!

I've attached a zip with the patches, .imageset and .tga files.

I'm beginning to understand why CE made the framewindow scale the button on WindowsLook though... It's so tiny :shock:

anyway. I think titlebar itself looks better now - so enjoy :hammer:

here's how it looks...
Image

edit:
this is of course against the latest CVS

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Having a weird image scaling problem with WindowsLook

Postby CrazyEddie » Tue Mar 29, 2005 08:29

Yeah, this looks good :)

CE.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Having a weird image scaling problem with WindowsLook

Postby lindquist » Wed Mar 30, 2005 21:38

should I add it to the patch tracker ?

User avatar
toysnob
Just popping in
Just popping in
Posts: 13
Joined: Fri Feb 18, 2005 01:15

Re: Having a weird image scaling problem with WindowsLook

Postby toysnob » Thu Mar 31, 2005 18:29

I can't wait for this to be added to the main source, how can I apply this patch locally? Is there a tool I can use?



Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 2 guests