aboutsummaryrefslogtreecommitdiffstats
path: root/fb-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'fb-gui.c')
-rw-r--r--fb-gui.c59
1 files changed, 0 insertions, 59 deletions
diff --git a/fb-gui.c b/fb-gui.c
index c17a953..1994f51 100644
--- a/fb-gui.c
+++ b/fb-gui.c
@@ -252,37 +252,6 @@ void shadow_darkify(int x1, int x2, int y1,int y2, int percent)
cairo_fill(context);
}
-void shadow_reverse(int x1, int x2, int y1,int y2)
-{
- unsigned char *ptr;
- int x,y,h;
-
- if (x2 < x1)
- h = x2, x2 = x1, x1 = h;
- if (y2 < y1)
- h = y2, y2 = y1, y1 = h;
-
- if (x1 < 0)
- x1 = 0;
- if (x2 >= swidth)
- x2 = swidth;
-
- if (y1 < 0)
- y1 = 0;
- if (y2 >= sheight)
- y2 = sheight;
-
- for (y = y1; y <= y2; y++) {
- sdirty[y]++;
- ptr = shadow[y];
- for (x = x1; x <= x2; x++) {
- ptr[4*x+0] = 255-ptr[4*x+0];
- ptr[4*x+1] = 255-ptr[4*x+1];
- ptr[4*x+2] = 255-ptr[4*x+2];
- }
- }
-}
-
/* ---------------------------------------------------------------------- */
/* shadow framebuffer -- text rendering */
@@ -402,34 +371,6 @@ int shadow_draw_string(FT_Face face, int x, int y, wchar_t *str, int align)
return pos >> 6;
}
-void shadow_draw_string_cursor(FT_Face face, int x, int y, wchar_t *str, int pos)
-{
- wchar_t save;
- int len, left, width, y1, y2;
-
- len = wcslen(str);
- if (pos >= len) {
- left = shadow_draw_string(face, x, y, str, -1);
- width = shadow_draw_string(face, x+left, y, L" ", -1);
- } else {
- save = str[pos];
- str[pos] = 0;
- left = shadow_draw_string(face, x, y, str, -1);
- str[pos] = save;
-
- save = str[pos+1];
- str[pos+1] = 0;
- width = shadow_draw_string(face, x+left, y, str+pos, -1);
- str[pos+1] = save;
-
- shadow_draw_string(face, x+left+width, y, str+pos+1, -1);
- }
-
- y2 = y - (face->size->metrics.descender >> 6) -1;
- y1 = y2 - (face->size->metrics.height >> 6) +1;
- shadow_reverse(left,left+width,y1,y2);
-}
-
void shadow_draw_text_box(FT_Face face, int x, int y, int percent, wchar_t *lines[], unsigned int count)
{
unsigned int i,len,max, x1, x2, y1, y2;