Skip to main content
gamedev.net
🔒 Locked

SetViewPort bug?

Started by Anddos 2 replies 1k views
Original Post
Anddos
Anddos
why does this happen ?
http://img337.imageshack.us/i/setviewporterror.jpg
nothing else should be rendering and would be the color of the windows parent ..
:)
Endurion
Endurion
If you never clear that area it'll show any random stuff that is in that memory. Using DirectX the generic GDI rendering is completely overridden and won't come into play.

So if your viewport only covers the left part you need to at least clear that area on the right at least once (and probably everytime a lost device is being recovered).
Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>
Anddos
Anddos
how do you clear just that left over rect area then?
:)
Evil Steve
Evil Steve
FillRect, or give your window a non-null hbrBackground parameter to RegisterClass.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.