Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MEGA65/CORE: window size configuration anomalies #383

Open
lgblgblgb opened this issue Aug 12, 2023 · 0 comments
Open

MEGA65/CORE: window size configuration anomalies #383

lgblgblgb opened this issue Aug 12, 2023 · 0 comments

Comments

@lgblgblgb
Copy link
Owner

lgblgblgb commented Aug 12, 2023

Emulation window size ("zoom") should be settable by configuration and/or UI menu. However there is no clear/tested way to do that in the Xemu framework, and especially problematic in the MEGA65 emulator. Also UI does not reflect the current setting.

Old bug report: #246

Since the problem is more general than that, let's continue with this one instead.

Problems:

  • Trying to implement zoom factor causes very strange effects (at least in the MEGA65 emulator): texture remains the same size in bigger window, or snapping to some strange size (xemu_window_snap_to_optimal_size problem in emutools.c?)
  • MEGA65 emulator should/try reflect the current setting in menu
  • CLI/config option should be presented for setting zoom factor automatically
  • Interestingly, resizing the window with mouse, seems not to have any strange issue

I want:

  • Configurable "zoom" (scale) factor: from CLI, config file (saveable option), and UI menu
  • Store window position on demand / restore [DONE]
  • Free "resize by hand" may go, it seems that feature is not even widely known or used, but causing problems!
  • Of course, avoid visual glitches and things everywhere
@lgblgblgb lgblgblgb self-assigned this Aug 12, 2023
@lgblgblgb lgblgblgb added the UI label Aug 12, 2023
lgblgblgb added a commit that referenced this issue Jan 8, 2024
This commit allows to set Xemu window position via CLI switch. Also, UI
menu has been added to be able to save current window position which is
restored on the next execution of the emulator. The save itself is NOT
automatic, since it seems, this is a bit awkward (not because of Xemu):
it seems sometimes SDL2 sees window pos _without_ the decoration border,
but sometimes with it ... So always saving winpos (window position) and
always restoring it can cause the window to draft away a bit at every
executuion, which is annoying ...
@github-project-automation github-project-automation bot moved this to In Progress in Xemu core Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Status: In Progress
Development

No branches or pull requests

1 participant