From e9fabbbc13e665d42bffa9704221f76e0a36713e Mon Sep 17 00:00:00 2001 From: François Revel Date: Sat, 25 Apr 2009 02:38:39 +0000 Subject: Moving the pen to 0,0 helps a lot making sure where we start drawing... svn path=/trunk/netsurf/; revision=7313 --- beos/beos_plotters.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/beos/beos_plotters.cpp b/beos/beos_plotters.cpp index ac40140c3..445d1f319 100644 --- a/beos/beos_plotters.cpp +++ b/beos/beos_plotters.cpp @@ -712,10 +712,17 @@ printf("plot_tile: -> %dx%d\n", width, height); static BPoint transform_pt(float x, float y, const float transform[6]) { #warning XXX: verify - return BPoint(x, y); + //return BPoint(x, y); BPoint pt; pt.x = x * transform[0] + y * transform[1] + transform[4]; pt.y = x * transform[2] + y * transform[3] + transform[5]; + /* + printf("TR: {%f, %f} { %f, %f, %f, %f, %f, %f} = { %f, %f }\n", + x, y, + transform[0], transform[1], transform[2], + transform[3], transform[4], transform[5], + pt.x, pt.y); + */ return pt; } @@ -770,6 +777,7 @@ bool nsbeos_plot_path(const float *p, unsigned int n, colour fill, float width, rgb_color old_high = view->HighColor(); float old_pen = view->PenSize(); view->SetPenSize(width); + view->MovePenTo(0, 0); if (fill != TRANSPARENT) { view->SetHighColor(nsbeos_rgb_colour(fill)); view->FillShape(&shape); -- cgit v1.2.3