gbasys

view samples/fonts/fonts.c @ 12:a6ddf338a111

line clipping
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 01 Feb 2016 04:41:27 +0200
parents 875ef6085efc
children
line source
1 #include "gbasys.h"
3 int main(void)
4 {
5 int i;
6 struct font *font;
8 print_vba("foobar\n");
10 set_video_mode(VMODE_LFB_240x160_16, 1);
12 font = get_font();
14 clear_buffer(front_buffer, 0);
15 draw_string("int main(void) {", 0, 0, front_buffer);
16 draw_string(" return 0;", 0, font->y, front_buffer);
17 draw_string("}", 0, font->y * 2, front_buffer);
18 /*flip();*/
20 halt();
22 return 0;
23 }