1
0
Fork 0
mirror of https://github.com/HACKERALERT/Picocrypt.git synced 2024-12-30 11:22:18 +00:00

Put syscall under build constraint

This commit is contained in:
Evan Su 2022-09-04 19:23:37 -04:00 committed by GitHub
parent e10e44b387
commit cd7482fa05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 11 deletions

View file

@ -28,10 +28,8 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"regexp" "regexp"
"runtime"
"strconv" "strconv"
"strings" "strings"
"syscall"
"time" "time"
"github.com/HACKERALERT/clipboard" "github.com/HACKERALERT/clipboard"
@ -2020,12 +2018,8 @@ func sizeify(size int64) string {
} }
func main() { func main() {
// Set DPI awareness to system aware (value of 1) // Set DPI awareness to system aware on Windows
if runtime.GOOS == "windows" { giu.FixDPI()
shcore := syscall.NewLazyDLL("Shcore.dll")
shproc := shcore.NewProc("SetProcessDpiAwareness")
shproc.Call(uintptr(1))
}
// Create the main window // Create the main window
window = giu.NewMasterWindow("Picocrypt", 318, 479, giu.MasterWindowFlagsNotResizable) 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/clipboard v0.1.5-0.20220507233423-cccec4a4226a
github.com/HACKERALERT/crypto v0.0.0-20220508005928-a6d354b4bce5 github.com/HACKERALERT/crypto v0.0.0-20220508005928-a6d354b4bce5
github.com/HACKERALERT/dialog v0.0.0-20220508022504-af3bc34fe379 github.com/HACKERALERT/dialog v0.0.0-20220508022504-af3bc34fe379
github.com/HACKERALERT/giu v0.5.7-0.20220625033920-09d00499b7a0 github.com/HACKERALERT/giu v0.5.7-0.20220904225735-82902a743aba
github.com/HACKERALERT/imgui-go v1.12.1-0.20220625032501-ccba9a3ad6fa github.com/HACKERALERT/imgui-go v1.12.1-0.20220625032501-ccba9a3ad6fa
github.com/HACKERALERT/infectious v0.0.0-20220507232346-2b127b76a757 github.com/HACKERALERT/infectious v0.0.0-20220507232346-2b127b76a757
github.com/HACKERALERT/serpent v0.0.0-20210716182301-293b29869c66 github.com/HACKERALERT/serpent v0.0.0-20210716182301-293b29869c66

View file

@ -4,8 +4,8 @@ github.com/HACKERALERT/crypto v0.0.0-20220508005928-a6d354b4bce5 h1:nTOuBrqZHfhy
github.com/HACKERALERT/crypto v0.0.0-20220508005928-a6d354b4bce5/go.mod h1:wc+TkRIxPthhgcmH94G8okAtnodc6t+tlv+Q41TDj5s= github.com/HACKERALERT/crypto v0.0.0-20220508005928-a6d354b4bce5/go.mod h1:wc+TkRIxPthhgcmH94G8okAtnodc6t+tlv+Q41TDj5s=
github.com/HACKERALERT/dialog v0.0.0-20220508022504-af3bc34fe379 h1:GR92LbksZ8zdbzQHf2dTI7e7P8Mjbdi5mSmQv2SK2Uw= 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/dialog v0.0.0-20220508022504-af3bc34fe379/go.mod h1:V0Gv8EvnwHTFk9TOZiHlYlXcUnVHoXJazNW0pVKZnkY=
github.com/HACKERALERT/giu v0.5.7-0.20220625033920-09d00499b7a0 h1:fifJATRJxy5a/vctxPs6LKaOu8kv4tO2XHgVgzWeO2A= github.com/HACKERALERT/giu v0.5.7-0.20220904225735-82902a743aba h1:1WDtHp81L4vJep3kjMf67/CbhJvPe1YsQFg7x4x0m30=
github.com/HACKERALERT/giu v0.5.7-0.20220625033920-09d00499b7a0/go.mod h1:xlfEv3JujiEB1Dukbw0lIgsFYMx/L0u5BwxEmSu/ixg= github.com/HACKERALERT/giu v0.5.7-0.20220904225735-82902a743aba/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 h1:JMAOkmVuuJKjFAVeK+P7i3F/bVSCTU1UUmaxaYTYs9Q=
github.com/HACKERALERT/gl v0.0.0-20220507232930-73af36e130d3/go.mod h1:ZUosVzfEKNGLMLk6aj9yo0FSAhWWsbTMjuzeIUXniB0= 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= github.com/HACKERALERT/glfw/v3.3/glfw v0.0.0-20220507233141-2c5dd2490d18 h1:BjHTW61wldpYJa7Hc3o2w/jPtv5K8is2Z9R73ru0iU8=