Original Post
🔒 Locked
SetViewPort bug?
Advertisement
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).
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).
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.
Advertisement