From f9f7ef6ffb8f886edd819283938a8f7e00f13bf8 Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Mon, 5 Sep 2022 13:01:54 -0400 Subject: [PATCH] Move fix for DPI scaling out of main code --- src/Picocrypt.go | 3 --- src/go.mod | 2 +- src/go.sum | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Picocrypt.go b/src/Picocrypt.go index 8beaf79..7dc31c3 100644 --- a/src/Picocrypt.go +++ b/src/Picocrypt.go @@ -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) diff --git a/src/go.mod b/src/go.mod index ac513af..2729990 100644 --- a/src/go.mod +++ b/src/go.mod @@ -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 diff --git a/src/go.sum b/src/go.sum index a9801fa..4ea2072 100644 --- a/src/go.sum +++ b/src/go.sum @@ -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=