nikita36078 / J2ME-Loader

A J2ME emulator for Android.
Apache License 2.0
1.72k stars 195 forks source link

Might and Magic: Switching to landscape mode screws up text #184

Closed namandixit closed 6 years ago

namandixit commented 6 years ago

Emulator version: 1.2.7.8-play

Game version: 1.0.0

Game resolution: 240x320

Device: Moto G4

Android version: 7.0

Description of the issue: While the text renders correctly in portrait mode; as soon as devoce is rotated to switch to landscape mode, the text size increases by a large factor. If the device is rotated back to portrait mode, the increased text size persist.

Initial Portrait:

Portrait

After switching to Landscape:

Landscape

After switching back to portrait:

Portrait again

namandixit commented 6 years ago

Added: Simply starting the game in Landscape mode (as opposed to starting in portrait and then switching to landscape) has the same problem. Also, toggling Immediate Mode does not fix the problem.

oatmeal01 commented 6 years ago

have you tried adjusting the font

namandixit commented 6 years ago

@oatmeal01 I tried all the all four options in Presets under Font options, none of them fixed the problem. Is that what you meant by "adjusting the font"?

oatmeal01 commented 6 years ago

Here's the solution/fix:

Run the game in 128x128 font preset.

namandixit commented 6 years ago

@oatmeal01 No, it does not seem to have fixed the problem (the font size is a bit smaller than before but the size is still too much)

128x128 with values in scaled pixels

namandixit commented 6 years ago

@oatmeal01 That is what I did in above screenshot. To be sure, are you running 240x320 version of the game. (Maybe different versions do things differently)

EDIT: Okay, so playing around with font settings don't really change anything substantially (either in the normal portrait mode, screwed up landscape mode or screwed up portrait mode).

oatmeal01 commented 6 years ago

Reso: 240x320

Game without tweaking font

run the game in 128x128 font preset without checking scaled pixel.

namandixit commented 6 years ago

@oatmeal01 In your fixed screenshot, the line © 2004 Gameloft takes up more that half the width but in my original unscrewed potrait screenshot, it only take only ⅓ of the screen width. I think that while it feels like it got fixed on your device (probably because your phone has a different resolution than mine), the problem is still there - it's only more easily detectable on my device.

namandixit commented 6 years ago

Wait, if I switch off the virtual keyboard in game settings, the problem fixes itself (of course, I can't play the game anymore without a keyboard). This is one weird bug.

EDIT: This keyboard layout works:

screenshot_20180303-142725

And this does not:

screenshot_20180303-142754

This game however required the1 key which is not available in the first layout (up-left does not work).

oatmeal01 commented 6 years ago

Font tweaking works fine. Sample image below. 240x400 COC: Red Alert without tweaking font

font preset 128x160

namandixit commented 6 years ago

@oatmeal01 It does not on my device (Moto G4 with Android 7.0). Also, check my last comment, it's most probably an emulator bug.

nikita36078 commented 6 years ago

Yes, it is a virtual keyboard bug, I will fix it soon.

nikita36078 commented 6 years ago

Fixed.