gbasys

view samples/fonts/fonts.c @ 10:9d05431f4a16

fixed GET_R/GET_B macros which where reversed
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 30 Jan 2016 05:23:48 +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 }