Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnovak committed Apr 4, 2024
1 parent 5c054f5 commit 29e8399
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/csdwindow.nim
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import common
import utils/misc
import utils/rect


# {{{ Constants
const
TitleBarFontSize = 14.0
Expand Down
12 changes: 6 additions & 6 deletions src/main.nim
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ import std/unicode

# Libraries
import glad/gl

import glfw
from glfw/wrapper import IconImageObj

import koi
from koi/utils as koiUtils import lerp, invLerp, remap
from koi/utils import lerp, invLerp, remap

import nanovg
when not defined(DEBUG): import osdialog

when not defined(DEBUG):
import osdialog

when defined(windows):
import platform/windows/console
Expand Down Expand Up @@ -9898,10 +9898,10 @@ proc closeSplash(a) =
proc loadAndSetIcon(a) =
alias(p, a.paths)

var icons: array[5, wrapper.IconImageObj]
var icons: array[5, IconImageObj]

proc add(idx: Natural, img: ImageData) =
icons[idx].width = img.width.int32
icons[idx].width = img.width.int32
icons[idx].height = img.height.int32
icons[idx].pixels = cast[ptr uint8](img.data)

Expand Down

0 comments on commit 29e8399

Please sign in to comment.