Move fix for DPI scaling out of main code

This commit is contained in:
Evan Su 2022-09-05 13:01:54 -04:00 committed by GitHub
parent efa354ff09
commit f9f7ef6ffb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View file

@ -2018,9 +2018,6 @@ func sizeify(size int64) string {
}
func main() {
// Set DPI awareness to system aware on Windows
giu.FixDPI()
// Create the main window
window = giu.NewMasterWindow("Picocrypt", 318, 479, giu.MasterWindowFlagsNotResizable)

View file

@ -6,7 +6,7 @@ require (
github.com/HACKERALERT/clipboard v0.1.5-0.20220507233423-cccec4a4226a
github.com/HACKERALERT/crypto v0.0.0-20220905152506-aa0dd62d8f67
github.com/HACKERALERT/dialog v0.0.0-20220508022504-af3bc34fe379
github.com/HACKERALERT/giu v0.5.7-0.20220904225735-82902a743aba
github.com/HACKERALERT/giu v0.5.7-0.20220905165509-1141d2b849c4
github.com/HACKERALERT/imgui-go v1.12.1-0.20220625032501-ccba9a3ad6fa
github.com/HACKERALERT/infectious v0.0.0-20220905152109-2c37b99f37ff
github.com/HACKERALERT/serpent v0.0.0-20210716182301-293b29869c66

View file

@ -4,8 +4,8 @@ github.com/HACKERALERT/crypto v0.0.0-20220905152506-aa0dd62d8f67 h1:4WfPIopYjvBj
github.com/HACKERALERT/crypto v0.0.0-20220905152506-aa0dd62d8f67/go.mod h1:qiHCxMDsCxX4QhXd3kDYWiNOR/DZQZ7nYO/f2OgWst0=
github.com/HACKERALERT/dialog v0.0.0-20220508022504-af3bc34fe379 h1:GR92LbksZ8zdbzQHf2dTI7e7P8Mjbdi5mSmQv2SK2Uw=
github.com/HACKERALERT/dialog v0.0.0-20220508022504-af3bc34fe379/go.mod h1:V0Gv8EvnwHTFk9TOZiHlYlXcUnVHoXJazNW0pVKZnkY=
github.com/HACKERALERT/giu v0.5.7-0.20220904225735-82902a743aba h1:1WDtHp81L4vJep3kjMf67/CbhJvPe1YsQFg7x4x0m30=
github.com/HACKERALERT/giu v0.5.7-0.20220904225735-82902a743aba/go.mod h1:xlfEv3JujiEB1Dukbw0lIgsFYMx/L0u5BwxEmSu/ixg=
github.com/HACKERALERT/giu v0.5.7-0.20220905165509-1141d2b849c4 h1:U2hpVtadIR2lnEnvrqg537IkZjf6tRd7JlQRC9CSJPU=
github.com/HACKERALERT/giu v0.5.7-0.20220905165509-1141d2b849c4/go.mod h1:xlfEv3JujiEB1Dukbw0lIgsFYMx/L0u5BwxEmSu/ixg=
github.com/HACKERALERT/gl v0.0.0-20220507232930-73af36e130d3 h1:JMAOkmVuuJKjFAVeK+P7i3F/bVSCTU1UUmaxaYTYs9Q=
github.com/HACKERALERT/gl v0.0.0-20220507232930-73af36e130d3/go.mod h1:ZUosVzfEKNGLMLk6aj9yo0FSAhWWsbTMjuzeIUXniB0=
github.com/HACKERALERT/glfw/v3.3/glfw v0.0.0-20220507233141-2c5dd2490d18 h1:BjHTW61wldpYJa7Hc3o2w/jPtv5K8is2Z9R73ru0iU8=