Skip to content

Commit

Permalink
fix: SetProcessDpiAwareness should be windows specific configuration #86
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlin7 committed Jul 22, 2023
1 parent 4944664 commit 56023d4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions biscuit/app.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
import os, sys
import subprocess
import tkinter as tk
from ctypes import windll

from core import *
from core.components import FindReplace, register_game
from core.settings.editor import SettingsEditor

import os, sys
import subprocess
import tkinter as tk
from ctypes import windll

from core import *
from core.components import FindReplace, register_game
Expand Down Expand Up @@ -103,6 +93,7 @@ def setup_tk(self):
"""Sets up the Tkinter window size, title, and scaling"""

if self.sysinfo.os == "Windows":
from ctypes import windll
windll.shcore.SetProcessDpiAwareness(1)

self.dpi_value = self.winfo_fpixels('1i')
Expand Down

0 comments on commit 56023d4

Please sign in to comment.