mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 07:19:37 +03:00
Fix stupid
svn path=/trunk/netsurf/; revision=8672
This commit is contained in:
parent
6e13c2fb0a
commit
1e96962f6f
@ -219,13 +219,12 @@ bool nsfont_split(const plot_font_style_t *fstyle,
|
||||
* \param length length of string
|
||||
* \param x x coordinate
|
||||
* \param y y coordinate
|
||||
* \param c colour for text
|
||||
* \return true on success, false on error and error reported
|
||||
*/
|
||||
|
||||
bool nsfont_paint(const plot_font_style_t *fstyle,
|
||||
const char *string, size_t length,
|
||||
int x, int y, colour bg, colour c)
|
||||
int x, int y)
|
||||
{
|
||||
//fprintf(stderr, "%s(, '%s', %d, %d, %d, )\n", __FUNCTION__, string, length, x, y);
|
||||
//CALLED();
|
||||
@ -240,8 +239,8 @@ bool nsfont_paint(const plot_font_style_t *fstyle,
|
||||
return true;
|
||||
|
||||
nsbeos_style_to_font(font, fstyle);
|
||||
background = nsbeos_rgb_colour(bg);
|
||||
foreground = nsbeos_rgb_colour(c);
|
||||
background = nsbeos_rgb_colour(fstyle->background);
|
||||
foreground = nsbeos_rgb_colour(fstyle->foreground);
|
||||
|
||||
view = nsbeos_current_gc/*_lock*/();
|
||||
if (view == NULL) {
|
||||
|
@ -397,7 +397,7 @@ bool nsbeos_plot_clip(int clip_x0, int clip_y0,
|
||||
bool nsbeos_plot_text(int x, int y, const char *text, size_t length,
|
||||
const plot_font_style_t *fstyle)
|
||||
{
|
||||
return nsfont_paint(fstyle, text, length, x, y, bg);
|
||||
return nsfont_paint(fstyle, text, length, x, y);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user