Skip to content

Commit

Permalink
bugfix: Virtual Keyboard did not respect Auto-Crop (fixes #1273)
Browse files Browse the repository at this point in the history
If Auto-Crop was used, the Virtual keyboard would not show in the picture correctly
  • Loading branch information
dimitris-norce committed Apr 6, 2024
1 parent f3ed99a commit 10e8ee0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/osdep/vkbd/vkbd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,7 @@ void vkbd_update(bool createTextures)
{
int width, height;
SDL_QueryTexture(vkbdTexture, nullptr, nullptr, &width, &height);
int renderedWidth, rendererHeight;
SDL_RenderGetLogicalSize(mon->amiga_renderer, &renderedWidth, &rendererHeight);
int renderedWidth = crop_rect.w, rendererHeight = crop_rect.h;

vkbdEndX = (renderedWidth - width) / 2;
vkbdEndY = rendererHeight - height;
Expand Down

0 comments on commit 10e8ee0

Please sign in to comment.