Skip to content

Commit

Permalink
app: [Windows] remove redundant call to SetWindowText
Browse files Browse the repository at this point in the history
And fix a typo while here.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
  • Loading branch information
eliasnaur committed Sep 8, 2023
1 parent ae3bd2a commit f30e936
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/os_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,10 +686,9 @@ func (w *window) Configure(options []Option) {
showMode = windows.SW_SHOWMAXIMIZED

case Windowed:
windows.SetWindowText(w.hwnd, w.config.Title)
style |= winStyle
showMode = windows.SW_SHOWNORMAL
// Get target for client areaa size.
// Get target for client area size.
width = int32(w.config.Size.X)
height = int32(w.config.Size.Y)
// Get the current window size and position.
Expand Down

0 comments on commit f30e936

Please sign in to comment.