Skip to content

Commit

Permalink
[mac] fix rogue brace
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Sep 23, 2024
1 parent efe0c8d commit df091f0
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions v3/pkg/application/screenmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,18 +362,17 @@ func (s *Screen) physicalToDipRect(physicalRect Rect) Rect {
// Layout screens in the virtual space with DIP calculations and cache the screens
// for future coordinate transformation between the physical and logical (DIP) space
func (m *ScreenManager) LayoutScreens(screens []*Screen) error {
if screens == nil || len(screens) == 0 {
return fmt.Errorf("screens parameter is nil or empty")
}
m.screens = screens
if screens == nil || len(screens) == 0 {
return fmt.Errorf("screens parameter is nil or empty")
}
m.screens = screens

err := m.calculateScreensDipCoordinates()
if err != nil {
return err
}
err := m.calculateScreensDipCoordinates()
if err != nil {
return err
}

return nil
}
return nil
}

func (m *ScreenManager) Screens() []*Screen {
Expand Down

0 comments on commit df091f0

Please sign in to comment.