aboutsummaryrefslogtreecommitdiff
path: root/libgui/gui.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-16 15:35:43 +0200
committerMarvin Borner2020-08-16 15:35:43 +0200
commit36e36fae364dec02999f58edbe997780d901b674 (patch)
tree8b06909e475ef84201ca2ef9375880249b1d5e68 /libgui/gui.c
parentc4a0bc2571162ad83fc51eb823f1c535336041bf (diff)
Added WM and exec parameters
Diffstat (limited to 'libgui/gui.c')
-rw-r--r--libgui/gui.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/libgui/gui.c b/libgui/gui.c
index 460cf07..e42e0f6 100644
--- a/libgui/gui.c
+++ b/libgui/gui.c
@@ -38,32 +38,6 @@ void gui_write(struct vbe *vbe, int x, int y, const u32 c[3], char *text)
}
}
-// Abstraction
-int x, y = 0;
-const u32 c[3] = { 0xff, 0xff, 0xff };
-void gui_term_write_char(struct vbe *vbe, char ch)
-{
- if (x + font->width > vbe->width) {
- x = 0;
- y += font->height;
- }
-
- if (ch >= ' ' && ch <= '~') {
- gui_write_char(vbe, x, y, c, ch);
- x += font->width;
- } else if (ch == '\n') {
- x = 0;
- y += font->height;
- }
-}
-
-void gui_term_write(struct vbe *vbe, char *text)
-{
- for (u32 i = 0; i < strlen(text); i++) {
- gui_term_write_char(vbe, text[i]);
- }
-}
-
void gui_init(char *font_path)
{
font = psf_parse(read(font_path));