-[NEW] Windows refresh when needed
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -33,6 +33,10 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
if (e.type == SDL_QUIT) { should_exit=true; break; }
|
if (e.type == SDL_QUIT) { should_exit=true; break; }
|
||||||
if (z80debug::debugging()) {
|
if (z80debug::debugging()) {
|
||||||
|
if ((e.type==SDL_WINDOWEVENT) && ((e.window.event==SDL_WINDOWEVENT_SHOWN) || (e.window.event==SDL_WINDOWEVENT_EXPOSED))) {
|
||||||
|
z80debug::refresh();
|
||||||
|
zxscreen::refresh();
|
||||||
|
}
|
||||||
if (e.type == SDL_KEYDOWN) {
|
if (e.type == SDL_KEYDOWN) {
|
||||||
if (e.key.keysym.scancode==SDL_SCANCODE_ESCAPE) {
|
if (e.key.keysym.scancode==SDL_SCANCODE_ESCAPE) {
|
||||||
should_exit=true; break;
|
should_exit=true; break;
|
||||||
|
|||||||
Reference in New Issue
Block a user