summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-04-01 17:36:18 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-04-01 17:36:18 +0000
commit853793eaa81282de95a6f2069006c108ab1e7125 (patch)
tree8d1880e195cb90b03c2769a40d2d669f6eec3a9c /amiga/plotters.c
parentb10db01386c9cc661cbd276d3ee7230d822f7d40 (diff)
downloadnetsurf-853793eaa81282de95a6f2069006c108ab1e7125.tar.gz
netsurf-853793eaa81282de95a6f2069006c108ab1e7125.tar.bz2
Remove option_quick_text (local charset text printing)
svn path=/trunk/netsurf/; revision=7021
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-xamiga/plotters.c41
1 files changed, 3 insertions, 38 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index 50a13cd7b..f79337fbe 100755
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -182,8 +182,8 @@ bool ami_line(int x0, int y0, int x1, int y1, int width,
width = 1;
cairo_set_line_width(glob.cr, width);
- cairo_move_to(glob.cr, x0, y0 - 0.5);
- cairo_line_to(glob.cr, x1, y1 - 0.5);
+ cairo_move_to(current_cr, x0 + 0.5, y0 + 0.5);
+ cairo_line_to(current_cr, x1 + 0.5, y1 + 0.5);
cairo_stroke(glob.cr);
#endif
return true;
@@ -283,42 +283,7 @@ bool ami_clip(int x0, int y0, int x1, int y1)
bool ami_text(int x, int y, const struct css_style *style,
const char *text, size_t length, colour bg, colour c)
{
- char *buffer = NULL;
- struct TextFont *tfont;
-
- if(option_quick_text)
- {
- tfont = ami_open_font(style);
-
- SetRPAttrs(currp,RPTAG_APenColor,p96EncodeColor(RGBFB_A8B8G8R8,c),
- RPTAG_BPenColor,p96EncodeColor(RGBFB_A8B8G8R8,bg),
-// RPTAG_Font,tfont,
- TAG_DONE);
-
- utf8_to_local_encoding(text,length,&buffer);
-
- if(!buffer) return true;
-
-/* Below function prints Unicode text direct to the RastPort.
- * This is commented out due to lack of SDK which allows me to perform blits
- * that respect the Alpha channel. The code below that (and above) convert to
- * system default charset and write the text using graphics.library functions.
- *
- * ami_unicode_text(currp,text,length,style,x,y,c);
- *
- * or, perhaps the ttengine.library version (far too slow):
- * ami_tte_text(currp,text,length);
- */
- Move(currp,x,y);
- Text(currp,buffer,strlen(buffer));
- ami_close_font(tfont);
- ami_utf8_free(buffer);
- }
- else
- {
- ami_unicode_text(currp,text,length,style,x,y,c);
- }
-
+ ami_unicode_text(currp,text,length,style,x,y,c);
return true;
}