Skip to content

Commit dd2da29

Browse files
committed
remove remnants of window.quit and deinit tophat before exiting
1 parent e590654 commit dd2da29

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/tophat.h

-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ typedef struct
228228
th_vf2 viewport;
229229
th_vf2 wp_offset;
230230
th_vf2 target_size;
231-
bool need_quit;
232231
void *umka;
233232

234233
uu pressed[512];

src/window.c

+1-5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ th_print_umka_error_and_quit(int code)
4545
}
4646
}
4747

48+
th_deinit();
4849
exit(code);
4950
}
5051

@@ -74,11 +75,6 @@ frame()
7475
{
7576
thg->dpi_scale_factor = sapp_dpi_scale();
7677

77-
if (thg->need_quit) {
78-
sapp_quit();
79-
return;
80-
}
81-
8278
thg->pass_action = (sg_pass_action){
8379
.colors[0] = {.load_action = SG_LOADACTION_LOAD, .store_action = SG_STOREACTION_STORE}};
8480
sg_begin_default_pass(&thg->pass_action, sapp_width(), sapp_height());

0 commit comments

Comments
 (0)