Skip to content

Commit

Permalink
Take into account window margins
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiegel committed Aug 25, 2023
1 parent 7802511 commit 56728ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions garglk/garglk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ bool garglk::read_file(const std::string &filename, std::vector<unsigned char> &
GarglkWininfo garglk_wininfo()
{
return {
static_cast<glui32>(gli_image_rgb.width()),
static_cast<glui32>(gli_image_rgb.height()),
static_cast<glui32>(gli_image_rgb.width()) - (2 * gli_wmarginx),
static_cast<glui32>(gli_image_rgb.height()) - (2 * gli_wmarginy),
};
}

0 comments on commit 56728ed

Please sign in to comment.