joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.82k stars 383 forks source link

Two problems about window position and language #5197

Open wildtang opened 2 months ago

wildtang commented 2 months ago

DOS-VB-DOS1.zip

Describe the bug

When just launched, DOSBox-X window is not fullly showed, and although language in config file is set to English but showed some chinese chars.

Steps to reproduce the behaviour

  1. Move Windows Taskbar to the right side.
  2. Launch DOSBox-X with the config below Used configuration area (as a config file content) command is: "F:\OldDosWin\Emulators\DOSBox-X\Newest\bin\Win32\Release SDL2\dosbox-x.exe" -conf F:\OldDosWin\Emulators\DOSBox-X\MyConfs\DOS-VB-DOS1.conf
  3. The window position is a little offset, Max and Close button hidden as image below 图片
  4. If I minimazed the window by click the DOSBox-X icon on Taskbar, then click it again to show it, the window became no offset (normal as expect) as image below 图片

Expected behavior

No response

What operating system(s) this bug have occurred on?

Windows 10 LTSC 21H2 (19044.4780)

What version(s) of DOSBox-X have this bug?

ver.2024.07.01 (VS SDL2 32-bit) Build date/time: Jul 02, 2024 03:45:26am

Used configuration

See the attatch file DOS-VB-DOS1.zip

Output log

No response

Additional information

My Host OS is Windows 10 Simplified Chinese version. Monitor is 27 inch, screen resolution is 2560x1440. Text scale is 150% 图片

Have you checked that no similar bug report(s) exist?

Code of Conduct & Contributing Guidelines

wildtang commented 2 months ago

I resolved the problem that When just launched, DOSBox-X shows some Chinese chars, and when run VB for DOS shows some Chinese chars too.

First execute: chcp 437

if not execute chcp 437 before launch VB for DOS, the codepage will be 936, and VB for DOS will shows some Chinese chars as below image. 图片

if execute chcp 437 before launch VB for DOS, and VB for DOS will run normally as image below. 图片

maron2000 commented 2 months ago

My monitor is not 2560x1440, but the buttons are not hidden when launched with maximize option, regardless of text size option (100%, 125%, 150%). I moved to the taskbar to the right side of the screen, as your screenshot just in case, but it didn't matter as well.

maximize