gbasys

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