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
Having a weird image scaling problem with WindowsLook
Moderators: CEGUI MVP, CEGUI Team
- 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
I can confirm that your screenshot looks as it should (or it at least it looks the same here, anyway ).
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: Having a weird image scaling problem with WindowsLook
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?
Is that correct? Is there anyway for me to force CEGUI to render them at their original/normal size?
- 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
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)
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)
- 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
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
anyway. I think titlebar itself looks better now - so enjoy
here's how it looks...
edit:
this is of course against the latest CVS
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
anyway. I think titlebar itself looks better now - so enjoy
here's how it looks...
edit:
this is of course against the latest CVS
- 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
Yeah, this looks good
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
- 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
should I add it to the patch tracker ?
Re: Having a weird image scaling problem with WindowsLook
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