s/TRANSPARENT/NS_TRANSPARENT/

svn path=/trunk/netsurf/; revision=9773
This commit is contained in:
François Revel 2010-01-02 02:14:21 +00:00
parent 310279b2d5
commit ba2396e554

View File

@ -305,7 +305,7 @@ bool nsbeos_plot_polygon(const int *p, unsigned int n, const plot_style_t *style
points[i] = BPoint(p[2 * i], p[2 * i + 1]); points[i] = BPoint(p[2 * i], p[2 * i + 1]);
} }
if (style->fill_colour == TRANSPARENT) if (style->fill_colour == NS_TRANSPARENT)
view->StrokePolygon(points, (int32)n); view->StrokePolygon(points, (int32)n);
else else
view->FillPolygon(points, (int32)n); view->FillPolygon(points, (int32)n);
@ -522,7 +522,7 @@ static bool nsbeos_plot_bbitmap(int x, int y, int width, int height,
BRect rect(x, y, x + width - 1, y + height - 1); BRect rect(x, y, x + width - 1, y + height - 1);
/* /*
rgb_color old = view->LowColor(); rgb_color old = view->LowColor();
if (bg != TRANSPARENT) { if (bg != NS_TRANSPARENT) {
view->SetLowColor(nsbeos_rgb_colour(bg)); view->SetLowColor(nsbeos_rgb_colour(bg));
view->FillRect(rect, B_SOLID_LOW); view->FillRect(rect, B_SOLID_LOW);
} }
@ -763,11 +763,11 @@ bool nsbeos_plot_path(const float *p, unsigned int n, colour fill, float width,
float old_pen = view->PenSize(); float old_pen = view->PenSize();
view->SetPenSize(width); view->SetPenSize(width);
view->MovePenTo(0, 0); view->MovePenTo(0, 0);
if (fill != TRANSPARENT) { if (fill != NS_TRANSPARENT) {
view->SetHighColor(nsbeos_rgb_colour(fill)); view->SetHighColor(nsbeos_rgb_colour(fill));
view->FillShape(&shape); view->FillShape(&shape);
} }
if (c != TRANSPARENT) { if (c != NS_TRANSPARENT) {
view->SetHighColor(nsbeos_rgb_colour(c)); view->SetHighColor(nsbeos_rgb_colour(c));
view->StrokeShape(&shape); view->StrokeShape(&shape);
} }
@ -783,7 +783,7 @@ bool nsbeos_plot_path(const float *p, unsigned int n, colour fill, float width,
rgb_color nsbeos_rgb_colour(colour c) rgb_color nsbeos_rgb_colour(colour c)
{ {
rgb_color color; rgb_color color;
if (c == TRANSPARENT) if (c == NS_TRANSPARENT)
return B_TRANSPARENT_32_BIT; return B_TRANSPARENT_32_BIT;
color.red = c & 0x0000ff; color.red = c & 0x0000ff;
color.green = (c & 0x00ff00) >> 8; color.green = (c & 0x00ff00) >> 8;