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

HIDPI support broken on Macos builds #829

Closed
lpkruger opened this issue Sep 28, 2019 · 5 comments
Closed

HIDPI support broken on Macos builds #829

lpkruger opened this issue Sep 28, 2019 · 5 comments

Comments

@lpkruger
Copy link
Contributor

The issue is straightforward - screen.c does not #include "config.h" as it should so it never picks up the proper #ifdef from the Meson config.

It worked in 1.8 perhaps by accident because screen.c includes video_buffer.h which used to include config.h. This was removed in
ebccb9f

with the result that screen.c no longer picks up the Meson preprocessor defines.

@lpkruger
Copy link
Contributor Author

BTW - grepping for "config.h" shows there are quite a few source files that do not have this include. Since it is difficult to immediately know which file depends on Meson configs and which one does not, perhaps they should all include config.h ?

@lpkruger
Copy link
Contributor Author

here is a tested fix for the HIDPI issue

Author: Louis Kruger <louisk@gmail.com>
Date:   Sat Sep 28 18:54:08 2019 -0400

    include config.h

diff --git a/app/src/screen.c b/app/src/screen.c
index 18d24dd..e34bcf4 100644
--- a/app/src/screen.c
+++ b/app/src/screen.c
@@ -3,6 +3,7 @@
 #include <string.h>
 #include <SDL2/SDL.h>

+#include "config.h"
 #include "common.h"
 #include "compat.h"
 #include "icon.xpm"

@rom1v
Copy link
Collaborator

rom1v commented Sep 29, 2019

here is a tested fix for the HIDPI issue

🎉

Do you mean #15?

screen.c does not #include "config.h"

😱

Since it is difficult to immediately know which file depends on Meson configs and which one does not, perhaps they should all include config.h ?

👍

rom1v pushed a commit that referenced this issue Sep 29, 2019
Ref: <#829>

Signed-off-by: Romain Vimont <rom@rom1v.com>
rom1v added a commit that referenced this issue Sep 29, 2019
Ref: <#829>

Suggested-by: Louis Kruger <louisk@gmail.com>
@rom1v
Copy link
Collaborator

rom1v commented Sep 29, 2019

129dabc 1f8ba1c

@rom1v rom1v closed this as completed Sep 29, 2019
@lpkruger
Copy link
Contributor Author

lpkruger commented Oct 2, 2019

Sorry I do not know whether this fixed #15 or not. If I get a free minute I could look into that though.

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

2 participants