| Summary: | strange screen problem when using big font in windows 2000 and windows XP | ||
|---|---|---|---|
| Product: | SDL | Reporter: | jiangkai <jiangkai> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED WONTFIX | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 1.2.11 | ||
| Hardware: | x86 | ||
| OS: | Windows (NT) | ||
Are you talking about the system font, or a font you're using in an application? Does it happen with the SDL test programs? I was actually able to reproduce this. Wierd... 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? |
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?