Public bug reported:
Binary package hint: usplash
I'm making a theme. That theme need some drawing line function. But usplash
didn't public those function for theme. Hope can add these function for theme.
I add drawing horizontal line function and drawing vertical line function. I
hope the two function can help usplash theme maker.
The patch:
diff -rupN usplash-0.5.25-orig/usplash_backend.h
usplash-0.5.25/usplash_backend.h
--- usplash-0.5.25-orig/usplash_backend.h 2007-10-15 17:20:39.000000000 +0800
+++ usplash-0.5.25/usplash_backend.h 2009-02-17 13:13:30.000000000 +0800
@@ -34,6 +34,8 @@ void usplash_put(int x, int y, void *poi
void usplash_put_part(int x, int y, int w, int h, void *pointer, int x0,
int y0);
+void usplash_hline(int x1, int x2, int y, int c);
+void usplash_vline(int x, int y1, int y2, int c);
/* Defined in libusplash.c, but used by video backends */
void usplash_restore_console(void);
void usplash_save_font(void);
diff -rupN usplash-0.5.25-orig/usplash_bogl_backend.h
usplash-0.5.25/usplash_bogl_backend.h
--- usplash-0.5.25-orig/usplash_bogl_backend.h 2007-10-15 17:20:39.000000000
+0800
+++ usplash-0.5.25/usplash_bogl_backend.h 2009-02-17 13:14:07.000000000 +0800
@@ -34,5 +34,6 @@ void usplash_bogl_getdimensions(int *x,
void usplash_bogl_put(int x, int y, void *pointer);
void usplash_bogl_put_part(int x, int y, int w, int h, void *pointer,
int x0, int y0);
-
+void usplash_bogl_hline(int x1, int x2, int y, int c);
+void usplash_bogl_vline(int x, int y1, int y2, int c);
#endif
diff -rupN usplash-0.5.25-orig/usplash_bogl.c usplash-0.5.25/usplash_bogl.c
--- usplash-0.5.25-orig/usplash_bogl.c 2007-10-15 17:20:39.000000000 +0800
+++ usplash-0.5.25/usplash_bogl.c 2009-02-17 13:14:49.000000000 +0800
@@ -129,3 +129,13 @@ usplash_bogl_put_part(int x, int y, int
bogl_put(x, y, &bp, usplash_bogl_colour_map);
free(part);
}
+
+void usplash_bogl_hline(int x1, int x2, int y, int c)
+{
+ bogl_hline(x1, x2, y, c);
+}
+
+void usplash_bogl_vline(int x, int y1, int y2, int c)
+{
+ bogl_vline(x, y1, y2, c);
+}
diff -rupN usplash-0.5.25-orig/usplash_svga_backend.h
usplash-0.5.25/usplash_svga_backend.h
--- usplash-0.5.25-orig/usplash_svga_backend.h 2007-10-15 17:20:39.000000000
+0800
+++ usplash-0.5.25/usplash_svga_backend.h 2009-02-17 13:15:24.000000000 +0800
@@ -35,4 +35,6 @@ void usplash_svga_put(int x, int y, void
void usplash_svga_put_part(int x, int y, int w, int h, void *pointer,
int x0, int y0);
+void usplash_svga_hline(int x1, int x2, int y, int c);
+void usplash_svga_vline(int x, int y1, int y2, int c);
#endif
diff -rupN usplash-0.5.25-orig/usplash_svga.c usplash-0.5.25/usplash_svga.c
--- usplash-0.5.25-orig/usplash_svga.c 2007-10-15 17:22:12.000000000 +0800
+++ usplash-0.5.25/usplash_svga.c 2009-02-17 13:16:06.000000000 +0800
@@ -303,6 +303,16 @@ void usplash_svga_getdimensions(int *x,
*y = HEIGHT;
}
+void usplash_svga_hline(int x1, int x2, int y, int c)
+{
+ gl_line(x1, y, x2, y, c);
+}
+
+void usplash_svga_vline(int x, int y1, int y2, int c)
+{
+ gl_line(x, y1, x, y2, c);
+}
+
/* We don't need these. But svgalib wants them for linking purposes. MATTHEW
SMASH */
** Affects: usplash (Ubuntu)
Importance: Undecided
Status: New
--
some theme need drawing line function
https://bugs.launchpad.net/bugs/330548
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs