-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Libtcod does not listen to system DPI settings, very tiny on hidpi screens #95
Comments
What platform is This kind of thing is difficult to work with. I need to know how to correctly do this in SDL2 and I never had a platform to test HighDPI on. Can you add |
Sorry, I didn't notice that this wasn't about python-tcod. How are you currently initializing the window? |
I'm just using the simple example: #include "libtcod.hpp"
int main() {
TCODConsole::initRoot(80,50,"libtcod",false);
while ( !TCODConsole::isWindowClosed() ) {
TCOD_key_t key;
TCODSystem::checkForEvent(TCOD_EVENT_KEY_PRESS,&key,NULL);
TCODConsole::root->clear();
TCODConsole::root->putChar(40,25,'@');
TCODConsole::flush();
}
return 0;
} |
Issue #90 might have some useful information. It at least contains what little I know about HighDPI. Is there a cross-platform way to use |
Normally, xserver apps will use |
Does the environment variable I've been unable to find an example of implementing |
Setting |
Any update on this? I love libtcod but it makes it unusable on my machine |
I guess I need more feedback on this. The SDL docs aren't clear on how you're normally supposed to handle it. If you're initializing libtcod the modern way then you can manually choose to pass or ignore SDL's |
For example, on i3:
Libtcod is drawing normal resolution without scaling to the dpi of the screen. An easy solution to this would be to read xserver's
Xft.dpi
, which is how most servers do it on x-based systemsThe text was updated successfully, but these errors were encountered: