summaryrefslogtreecommitdiff
path: root/beos
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2009-04-25 02:38:39 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2009-04-25 02:38:39 +0000
commite9fabbbc13e665d42bffa9704221f76e0a36713e (patch)
tree73ea3e96588dca4563eca610d57c6fab8f3b8499 /beos
parent48726077bebee8b940574777fa684623721d804b (diff)
downloadnetsurf-e9fabbbc13e665d42bffa9704221f76e0a36713e.tar.gz
netsurf-e9fabbbc13e665d42bffa9704221f76e0a36713e.tar.bz2
Moving the pen to 0,0 helps a lot making sure where we start drawing...
svn path=/trunk/netsurf/; revision=7313
Diffstat (limited to 'beos')
-rw-r--r--beos/beos_plotters.cpp10
1 files changed, 9 insertions, 1 deletions
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);