gbasys

view samples/fonts/fonts.c @ 0:875ef6085efc

gbasys mercurial repository
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 04 Mar 2012 04:04:25 +0200
parents
children c50064b181c2
line source
1 #include "libgba.h"
3 int main(void) {
4 int i;
5 struct font *font;
7 set_video_mode(VMODE_LFB_240x160_16, 1);
9 font = get_font();
11 clear_buffer(front_buffer, 0);
12 draw_string("int main(void) {", 0, 0, front_buffer);
13 draw_string(" return 0;", 0, font->y, front_buffer);
14 draw_string("}", 0, font->y * 2, front_buffer);
15 /*flip();*/
17 halt();
19 return 0;
20 }