Skip to content

createMapper() in win 10 causes getMainWindowSize() to return false values #2023

@bduza

Description

@bduza

Brief summary of issue / Description of requested feature:

createMapper() in win 10 causes getMudletWindowSize() to return false values
after manually resizing the mudlet window, it all works as expected.

Easiest way to describe is see steps to reproduce.

Steps to reproduce the issue / Reasons for adding feature:

  1. Fresh profile, connect to mud.
  2. Run this code:
print('Before draw: ' .. tostring(getMainWindowSize()))
createMapper(0,0,500,500)
print('After draw: ' .. tostring(getMainWindowSize()))

Error output / Expected result of feature

Before draw: 1920
[ OK ] - Map loaded successfully (0s).
After draw: 1600

Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:

  • Mudlet 3.13.0
  • Windows 10 Home
  • Confirmed by one other user (Eraene on discord)
  • Does not occur on at least one Mac user
  • Does not occur for at least one Linux user
  • Tried on a variety of different windows scaling settings, no effect.
  • Tried with Geyser version of adding inline mapper, same result.
  • Tried with mudlet window manually resized before running the script, no change - correct result before script, result after reduced by 300 pixels regardless of the size of the mudlet window when running the script.
  • With mudlet maximised, result is reduced by 320 pixels.
  • Changing the size of the mapper in the createMapper() func does not affect the results.
  • raiseEvent('sysWindowResizeEvent') after the script does not help. Only manually resizing mudlet with the mouse gets it in sync again.
  • running the script a second time doesn't fix it
  • running the script a second time after manually resizing it does not cause the fault to re-manifest

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions