Possible small buglet in SDL on NT

When you change the size of the video surface to a smaller size in
windowed mode, Windows NT leaves garbage behind on the screen area
that you used to use.

I don’t know if 98 does the same, my app crashes on 98 :frowning:

ATB,
Simon.

When you change the size of the video surface to a smaller size in
windowed mode, Windows NT leaves garbage behind on the screen area
that you used to use.

Yeah, I don’t know how to fix this one. Suggestions?

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Sam Lantinga wrote:

When you change the size of the video surface to a
smaller size in windowed mode, Windows NT leaves
garbage behind on the screen area that you used to use.

Yeah, I don’t know how to fix this one. Suggestions?

SetWindowPos doesn’t invalidate the exposed areas, you need to do that
manually so that the windows underneath will repaint. You can do it the easy
way and add a single InvalidateRect(NULL,NULL,TRUE) after SetWindowPos to
tell everybody to repaint everything :slight_smile:

  • Randi

Regimental Command
Generic Armored Combat System
http://www-users.cs.umn.edu/~relander/regcom/index.html

Sam Lantinga wrote:

When you change the size of the video surface to a
smaller size in windowed mode, Windows NT leaves
garbage behind on the screen area that you used to use.

Yeah, I don’t know how to fix this one. Suggestions?

SetWindowPos doesn’t invalidate the exposed areas, you need to do that
manually so that the windows underneath will repaint. You can do it the easy
way and add a single InvalidateRect(NULL,NULL,TRUE) after SetWindowPos to
tell everybody to repaint everything :slight_smile:

Cool, can you apply that change to the latest CVS and test it so I
can get a patch? I don’t have a windows system in front of me. :slight_smile:

Thanks!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software