mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-09-06 05:24:36 +02:00
go fmt ./...
This commit is contained in:
@@ -1,40 +1,36 @@
|
||||
package UI
|
||||
|
||||
import (
|
||||
"github.com/cuu/gogame/surface"
|
||||
"github.com/veandco/go-sdl2/sdl"
|
||||
|
||||
"github.com/veandco/go-sdl2/sdl"
|
||||
"github.com/cuu/gogame/surface"
|
||||
|
||||
"github.com/cuu/gogame/rect"
|
||||
|
||||
"github.com/cuu/gogame/rect"
|
||||
)
|
||||
|
||||
type FullScreen struct {
|
||||
Widget
|
||||
CanvasHWND *sdl.Surface
|
||||
HWND *sdl.Surface
|
||||
|
||||
Widget
|
||||
CanvasHWND *sdl.Surface
|
||||
HWND *sdl.Surface
|
||||
}
|
||||
|
||||
func NewFullScreen() *FullScreen {
|
||||
p := &FullScreen{}
|
||||
p.Width = Width
|
||||
p.Height = Height
|
||||
|
||||
return p
|
||||
p := &FullScreen{}
|
||||
p.Width = Width
|
||||
p.Height = Height
|
||||
|
||||
return p
|
||||
|
||||
}
|
||||
|
||||
func (self *FullScreen) SwapAndShow() {
|
||||
if self.HWND !=nil {
|
||||
rect_ := rect.Rect(self.PosX,self.PosY,self.Width,self.Height)
|
||||
surface.Blit(self.HWND,self.CanvasHWND,&rect_,nil)
|
||||
SwapAndShow()
|
||||
}
|
||||
if self.HWND != nil {
|
||||
rect_ := rect.Rect(self.PosX, self.PosY, self.Width, self.Height)
|
||||
surface.Blit(self.HWND, self.CanvasHWND, &rect_, nil)
|
||||
SwapAndShow()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (self *FullScreen) Draw() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user