Skip to content

Tell SDL2 to handle HiDPI shenanigans for us#1056

Merged
Frenzie merged 4 commits into
koreader:masterfrom
NiLuJe:master
Mar 2, 2020
Merged

Tell SDL2 to handle HiDPI shenanigans for us#1056
Frenzie merged 4 commits into
koreader:masterfrom
NiLuJe:master

Conversation

@NiLuJe

@NiLuJe NiLuJe commented Feb 29, 2020

Copy link
Copy Markdown
Member

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!

@Frenzie Frenzie left a comment

Copy link
Copy Markdown
Member

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. ;-)

Comment thread ffi-cdecl/SDL2_0_decl.c
cdecl_const(SDL_WINDOW_FULLSCREEN)
cdecl_const(SDL_WINDOW_FULLSCREEN_DESKTOP)
cdecl_const(SDL_WINDOW_RESIZABLE)
cdecl_const(SDL_WINDOW_ALLOW_HIGHDPI)

@Frenzie Frenzie Feb 29, 2020

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

@Frenzie Frenzie left a comment

Copy link
Copy Markdown
Member

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

Frenzie commented Feb 29, 2020

Copy link
Copy Markdown
Member

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

@NiLuJe

NiLuJe commented Feb 29, 2020

Copy link
Copy Markdown
Member Author

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

Frenzie commented Feb 29, 2020

Copy link
Copy Markdown
Member

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
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
* 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.

3 participants