go fmt ./...

This commit is contained in:
cuu
2021-10-11 13:55:54 +08:00
parent 0fe6399441
commit 7382cc40b1
88 changed files with 10028 additions and 10478 deletions

View File

@@ -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() {
}