annotate 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 |
rev |
line source |
nuclear@0
|
1 #include "libgba.h"
|
nuclear@0
|
2
|
nuclear@0
|
3 int main(void) {
|
nuclear@0
|
4 int i;
|
nuclear@0
|
5 struct font *font;
|
nuclear@0
|
6
|
nuclear@0
|
7 set_video_mode(VMODE_LFB_240x160_16, 1);
|
nuclear@0
|
8
|
nuclear@0
|
9 font = get_font();
|
nuclear@0
|
10
|
nuclear@0
|
11 clear_buffer(front_buffer, 0);
|
nuclear@0
|
12 draw_string("int main(void) {", 0, 0, front_buffer);
|
nuclear@0
|
13 draw_string(" return 0;", 0, font->y, front_buffer);
|
nuclear@0
|
14 draw_string("}", 0, font->y * 2, front_buffer);
|
nuclear@0
|
15 /*flip();*/
|
nuclear@0
|
16
|
nuclear@0
|
17 halt();
|
nuclear@0
|
18
|
nuclear@0
|
19 return 0;
|
nuclear@0
|
20 }
|