This commit is contained in:
Laurent Le Goff 2011-04-21 21:36:00 +02:00
parent a7681160d7
commit b476b6531f
3 changed files with 107 additions and 108 deletions

View file

@ -60,7 +60,7 @@ func TestDrawCubicCurve(gc draw2d.GraphicContext) {
var (
width, height int
rotate int
rotate int
)
func reshape(w, h int) {

View file

@ -118,7 +118,7 @@ func WndProc(hwnd, msg uint32, wparam, lparam int32) uintptr {
hdc := wingui.BeginPaint(hwnd, &ps)
gc := draw2d.NewGraphicContext(backBuffer)
gc.SetFillColor(image.RGBAColor{0xFF, 0xFF, 0xFF, 0xFF})
// gc.Clear()
// gc.Clear()
gc.Save()
//gc.Translate(0, -380)
interpreter := postscript.NewInterpreter(gc)

View file

@ -155,4 +155,3 @@ func (gc *GraphicContext) FillStroke(paths ...*draw2d.PathStorage) {
gc.paint(gc.strokeRasterizer, gc.Current.StrokeColor)
gc.Current.Path = new(draw2d.PathStorage)
}