Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Avoid WM_PAINT spam when no image is being viewed.
Browse files Browse the repository at this point in the history
  • Loading branch information
poppeman committed Sep 13, 2015
1 parent b25ba57 commit 32f5992
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/Pictus/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ namespace App {
}
else {
m_renderTarget.Clear(m_props.BackgroundColor);
ValidateRect(Handle(), nullptr);
return true;
}
}
Expand Down

0 comments on commit 32f5992

Please sign in to comment.