Skip to content

Commit

Permalink
Merge pull request #838 from cspiegel/window-creation-no-graphics
Browse files Browse the repository at this point in the history
Don't create a graphics window if graphics aren't supported
  • Loading branch information
cspiegel committed Apr 21, 2024
2 parents 49fa8a1 + 2c663aa commit 4532134
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions garglk/window.cpp
Expand Up @@ -170,6 +170,10 @@ winid_t glk_window_open(winid_t splitwin,
window_pair_t *dpairwin;
glui32 val;

if (wintype == wintype_Graphics && !gli_conf_graphics) {
return nullptr;
}

gli_force_redraw = true;

if (gli_rootwin == nullptr) {
Expand Down

0 comments on commit 4532134

Please sign in to comment.