summaryrefslogtreecommitdiff
path: root/framebuffer/fbtk
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-08-01 09:16:25 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-08-01 09:16:25 +0100
commit465ebb2c7bcfc214616571a6cb3a29c87a206653 (patch)
tree45d377b26ca6cfdcd8e26cbac705302125434896 /framebuffer/fbtk
parent37779f77d256000ec4f3a53bf9a1e198ab5e5ed0 (diff)
downloadnetsurf-465ebb2c7bcfc214616571a6cb3a29c87a206653.tar.gz
netsurf-465ebb2c7bcfc214616571a6cb3a29c87a206653.tar.bz2
Only writable text widget needs caret rendering.
Diffstat (limited to 'framebuffer/fbtk')
-rw-r--r--framebuffer/fbtk/text.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/framebuffer/fbtk/text.c b/framebuffer/fbtk/text.c
index 15c3f7a4f..3fd2a50d5 100644
--- a/framebuffer/fbtk/text.c
+++ b/framebuffer/fbtk/text.c
@@ -234,24 +234,6 @@ fb_redraw_text_button(fbtk_widget_t *widget, fbtk_callback_info *cbi )
&font_style);
}
- if (fbtk_get_caret(widget, &caret_x, &caret_y, &caret_h)) {
- /* This widget has caret, so render it */
- nsfb_t *nsfb = fbtk_get_nsfb(widget);
- nsfb_bbox_t line;
- nsfb_plot_pen_t pen;
-
- line.x0 = bbox.x0 + caret_x;
- line.y0 = bbox.y0 + caret_y;
- line.x1 = bbox.x0 + caret_x;
- line.y1 = bbox.y0 + caret_y + caret_h;
-
- pen.stroke_type = NFSB_PLOT_OPTYPE_SOLID;
- pen.stroke_width = 1;
- pen.stroke_colour = 0xFF0000FF;
-
- nsfb_plot_line(nsfb, &line, &pen);
- }
-
nsfb_update(root->u.root.fb, &bbox);
return 0;