We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 389 - strange screen problem when using big font in windows 2000 and windows XP
Summary: strange screen problem when using big font in windows 2000 and windows XP
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 1.2.11
Hardware: x86 Windows (NT)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-02 04:25 UTC by jiangkai
Modified: 2007-07-08 22:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jiangkai 2007-02-02 04:25:13 UTC
I use the following statement to create a screen:

      screen = SetVideoMode(128, 96, 8, SDL_ANYFORMAT);

When using small font in windows 2000,it works right, and creates a SDL screen
with black background. But when using big font, a smalll part in the right of the SDL screen will keep the last image showed in the phisycal screen.

I think that's a bug of SDL, is there somebody to check that problem please?
Comment 1 Sam Lantinga 2007-07-06 06:55:01 UTC
Are you talking about the system font, or a font you're using in an application?  Does it happen with the SDL test programs?
Comment 2 Sam Lantinga 2007-07-08 22:48:24 UTC
I was actually able to reproduce this.  Wierd...
Comment 3 Sam Lantinga 2007-07-08 22:55:34 UTC
Ah, I see what's going on.

If you specify a resizable video mode, you'll get a resize event to 136x96 as soon as you move or raise the window.  What's happening is that Windows is expanding the client rect area to the minimum size it needs to display the window decoration.

You'll notice that if you specify NOFRAME, then the window is the correct size and doesn't show any of the background.

I'm not sure there's anything we can do about this, since it's Windows that's adjusting our client rect.  Is there any particular reason you need such a small window?