Skip to content

Commit

Permalink
GLK: FROTZ: os_picture_data wasn't dividing by cell size
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jan 4, 2019
1 parent 642efa7 commit d5bf139
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion engines/glk/frotz/glk_interface.cpp
Expand Up @@ -291,7 +291,14 @@ bool GlkInterface::os_picture_data(int picture, uint *height, uint *width) {
*height = _pics->size();
return true;
} else {
return glk_image_get_info(picture, width, height);
bool result = glk_image_get_info(picture, width, height);

int cellW = g_conf->_monoInfo._cellW;
int cellH = g_conf->_monoInfo._cellH;
*width = (*width + cellW - 1) / cellW;
*height = (*height + cellH - 1) / cellH;

return result;
}
}

Expand Down

0 comments on commit d5bf139

Please sign in to comment.