fmt
This commit is contained in:
parent
a7681160d7
commit
b476b6531f
3 changed files with 107 additions and 108 deletions
|
@ -60,7 +60,7 @@ func TestDrawCubicCurve(gc draw2d.GraphicContext) {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
width, height int
|
width, height int
|
||||||
rotate int
|
rotate int
|
||||||
)
|
)
|
||||||
|
|
||||||
func reshape(w, h int) {
|
func reshape(w, h int) {
|
||||||
|
|
|
@ -118,7 +118,7 @@ func WndProc(hwnd, msg uint32, wparam, lparam int32) uintptr {
|
||||||
hdc := wingui.BeginPaint(hwnd, &ps)
|
hdc := wingui.BeginPaint(hwnd, &ps)
|
||||||
gc := draw2d.NewGraphicContext(backBuffer)
|
gc := draw2d.NewGraphicContext(backBuffer)
|
||||||
gc.SetFillColor(image.RGBAColor{0xFF, 0xFF, 0xFF, 0xFF})
|
gc.SetFillColor(image.RGBAColor{0xFF, 0xFF, 0xFF, 0xFF})
|
||||||
// gc.Clear()
|
// gc.Clear()
|
||||||
gc.Save()
|
gc.Save()
|
||||||
//gc.Translate(0, -380)
|
//gc.Translate(0, -380)
|
||||||
interpreter := postscript.NewInterpreter(gc)
|
interpreter := postscript.NewInterpreter(gc)
|
||||||
|
|
|
@ -155,4 +155,3 @@ func (gc *GraphicContext) FillStroke(paths ...*draw2d.PathStorage) {
|
||||||
gc.paint(gc.strokeRasterizer, gc.Current.StrokeColor)
|
gc.paint(gc.strokeRasterizer, gc.Current.StrokeColor)
|
||||||
gc.Current.Path = new(draw2d.PathStorage)
|
gc.Current.Path = new(draw2d.PathStorage)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue