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

Increasing the window size in Piemu #3

Open
Paragonias opened this issue Apr 5, 2022 · 5 comments
Open

Increasing the window size in Piemu #3

Paragonias opened this issue Apr 5, 2022 · 5 comments

Comments

@Paragonias
Copy link

Hello!
I love your and nsawa-san's work on a P/ECE emulator, thank you for making it. m(_ _)m

I tried both the original Piemu by nsawa-san and your SDL version and in the old Piemu version from 20030430 it was possible to enter fullscreen mode by pressing [Alt] + [Enter].
Is there a way to enter fullscreen mode in the SDL version of Piemu, or at least increase the size of the emulator window?

Thank you in advance for your reply.
よろしくお願いいたします。

P.S.
一応日本語で書きたいと思いましたが、やっぱり私の日本語がまだ弱く過ぎて
ごめんなさい

@autch
Copy link
Owner

autch commented Apr 6, 2022

Older p/emu was built with SDL1; it has built-in feature to enter fullscreen mode by Alt+Enter.
Recent p/emu is built with SDL2, it doesn't have Alt+Enter feature.

If you just want to enlarge window size in recent branch, adjust resolution multiplier in ui_init() function:

piemu/main.c

Line 79 in ea7ce8a

128 * 4, 88 * 4, SDL_WINDOW_ALLOW_HIGHDPI);

edit * 4 to your taste.

If you're porting p/emu to some console hardware (eg GameShell), force fullscreen mode by applying this patch:
https://gist.github.com/autch/c87c97953ed9c252a87ee1cc40ffeace

Resurrecting Alt+Enter feature will require more work to do...

@Paragonias
Copy link
Author

I tried compiling the source code into a new EXE, but I'm just not able to do it myself, unfortunately.
Would you be able to compile it on your end?

Below I attatched a screenshot of how big the emulator window is for me, the notepad window would be the size I would like it to be, at 3x the current size.
Screen resolution is 1920x1080.

Screenshot (24)
.

I would be greatful if you could compile it, but if you don't have the time that's okay.

@autch
Copy link
Owner

autch commented Apr 6, 2022

piemu_3x_ea7ce8.zip

Compiled in VS2019, install "Visual C++ 2019 Redistributables" if you cannot run this.

@Paragonias
Copy link
Author

Thank you for your new build, it looks amazing already.
However, I noticed that there is no sound.
I ran the older an older Piemu version from 2007 and the sound works just fine on that one.

Do you know how to fix the sound not playing?
As a test program on the piece.pfi I used 猪名川で売ろう.

Screenshot (28)

@atalarikt99
Copy link

Sorry for bumping through this issue, but I think it'd be good to see the sound issue fixed.
よろしくお願い致します。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants