Some line drawing functions
This commit is contained in:
@@ -60,4 +60,11 @@ void fbterm_init(struct fbinfo *fbinfo)
|
||||
flip(term_fb);
|
||||
term_fb = framebuffer_make_subcontext(&kernel_fb, 24, 24, 8*VGA_COLS, 16*VGA_ROWS);
|
||||
setup = 1;
|
||||
|
||||
draw_line(&kernel_fb, 750, 850, 120, 120, RGB(255,0,0));
|
||||
draw_line(&kernel_fb, 750, 750, 120, 220, RGB(0,255,0));
|
||||
draw_line(&kernel_fb, 750, 850, 120, 220, RGB(0,0,255));
|
||||
draw_line(&kernel_fb, 750, 800, 120, 220, RGB(255,0,255));
|
||||
draw_line(&kernel_fb, 750, 850, 120, 170, RGB(255,255,0));
|
||||
flip(&kernel_fb);
|
||||
}
|
||||
Reference in New Issue
Block a user