Making a theme that need some drawing line function

Bug #330389 reported by Alex Xu
2
Affects Status Importance Assigned to Milestone
usplash
New
Undecided
Unassigned

Bug Description

I'm making a theme. That theme need some drawing line function. But usplash didn't public this function for theme. I add these function for theme.
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 */

Revision history for this message
Alex Xu (xuhj) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.