gbasys

view samples/fonts/fonts.c @ 1:c50064b181c2

stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 04 Mar 2012 07:06:41 +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 }