Making a theme that need some drawing line function
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-
--- usplash-
+++ usplash-
@@ -34,6 +34,8 @@ void usplash_put(int x, int y, void *poi
void usplash_
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_
void usplash_
diff -rupN usplash-
--- usplash-
+++ usplash-
@@ -34,5 +34,6 @@ void usplash_
void usplash_
void usplash_
int x0, int y0);
-
+void usplash_
+void usplash_
#endif
diff -rupN usplash-
--- usplash-
+++ usplash-
@@ -129,3 +129,13 @@ usplash_
bogl_put(x, y, &bp, usplash_
free(part);
}
+
+void usplash_
+{
+ bogl_hline(x1, x2, y, c);
+}
+
+void usplash_
+{
+ bogl_vline(x, y1, y2, c);
+}
diff -rupN usplash-
--- usplash-
+++ usplash-
@@ -35,4 +35,6 @@ void usplash_
void usplash_
int x0, int y0);
+void usplash_
+void usplash_
#endif
diff -rupN usplash-
--- usplash-
+++ usplash-
@@ -303,6 +303,16 @@ void usplash_
*y = HEIGHT;
}
+void usplash_
+{
+ gl_line(x1, y, x2, y, c);
+}
+
+void usplash_
+{
+ gl_line(x, y1, x, y2, c);
+}
+
/* We don't need these. But svgalib wants them for linking purposes. MATTHEW
SMASH */