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

Tell SDL2 to handle HiDPI shenanigans for us #1056

Merged
merged 4 commits into from Mar 2, 2020
Merged

Conversation

NiLuJe
Copy link
Member

@NiLuJe NiLuJe commented Feb 29, 2020

Makes the emulator behave properly on macOS Retina screens, at least.

Contributed by @magicmirror1365 in
koreader/koreader#5909, thanks!


This change is Reviewable

Makes the emulator behave properly on macOS Retina screens, at least.

Contributed by @magicmirror1365 in
koreader/koreader#5909, thanks!
Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, but I still want to build/find SDL 2.0.0 first since I think it'll probably be fine. ;-)

@@ -220,6 +220,7 @@ cdecl_const(SDL_WINDOWPOS_UNDEFINED)
cdecl_const(SDL_WINDOW_FULLSCREEN)
cdecl_const(SDL_WINDOW_FULLSCREEN_DESKTOP)
cdecl_const(SDL_WINDOW_RESIZABLE)
cdecl_const(SDL_WINDOW_ALLOW_HIGHDPI)
Copy link
Member

@Frenzie Frenzie Feb 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, do you want to put it in alphabetically? (Three lines up.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd actually prefer it in increasing value order (i.e., the same order as the header), which I'm not sure is actually the case either :D.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's an interesting point. RESIZABLE should go in between FULLSCREEN and FULLSCREEN_DESKTOP then. ;-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fwiw I think they should go in value order too

Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better imo, didn't get around to building SDL 2.0.0 though.

Follow their original order (i.e., increasing values).
@Frenzie
Copy link
Member

Frenzie commented Feb 29, 2020

Sidebar, GH Actions is running the build here but for some reason it's not showing it in the PR.

@NiLuJe
Copy link
Member Author

NiLuJe commented Feb 29, 2020

Sidebar: this made me realize that the LuaJIT bitops module accepts > 2 args for the bitops. I'm fairly sure I've left a mess of ugly nested bit.op() stuff in the blitbuffer code that could be cleaned up this way ;p.

@Frenzie
Copy link
Member

Frenzie commented Feb 29, 2020

Haha, awesome. 👍

@Frenzie Frenzie merged commit dbe04ea into koreader:master Mar 2, 2020
Frenzie added a commit to Frenzie/koreader that referenced this pull request Mar 4, 2020
* Tell SDL2 to handle HiDPI shenanigans for us koreader/koreader-base#1056
* [CI] Run action on PR koreader/koreader-base#1058
* thirdparty/fribidi 1.0.9 koreader/koreader-base#1057
Frenzie added a commit to koreader/koreader that referenced this pull request Mar 4, 2020
* Tell SDL2 to handle HiDPI shenanigans for us koreader/koreader-base#1056
* [CI] Run action on PR koreader/koreader-base#1058
* thirdparty/fribidi 1.0.9 koreader/koreader-base#1057
mwoz123 pushed a commit to mwoz123/koreader that referenced this pull request Mar 29, 2020
* Tell SDL2 to handle HiDPI shenanigans for us koreader/koreader-base#1056
* [CI] Run action on PR koreader/koreader-base#1058
* thirdparty/fribidi 1.0.9 koreader/koreader-base#1057
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

Successfully merging this pull request may close these issues.

None yet

3 participants