gbasys
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/samples/fonts/fonts.c Sun Mar 04 04:04:25 2012 +0200 1.3 @@ -0,0 +1,20 @@ 1.4 +#include "libgba.h" 1.5 + 1.6 +int main(void) { 1.7 + int i; 1.8 + struct font *font; 1.9 + 1.10 + set_video_mode(VMODE_LFB_240x160_16, 1); 1.11 + 1.12 + font = get_font(); 1.13 + 1.14 + clear_buffer(front_buffer, 0); 1.15 + draw_string("int main(void) {", 0, 0, front_buffer); 1.16 + draw_string(" return 0;", 0, font->y, front_buffer); 1.17 + draw_string("}", 0, font->y * 2, front_buffer); 1.18 + /*flip();*/ 1.19 + 1.20 + halt(); 1.21 + 1.22 + return 0; 1.23 +}