sdlterm/demo.cc
changeset 50 c5b8b9d2da95
parent 48 1f00e90fd72a
child 51 dce7325109c1
equal deleted inserted replaced
49:1611c462c3e3 50:c5b8b9d2da95
    17 void Application::init()
    17 void Application::init()
    18 {
    18 {
    19 	term.resize(800, 600);
    19 	term.resize(800, 600);
    20 	term.select_font("font/DejaVuSansMono.ttf", "font/DejaVuSansMono-Bold.ttf", 12);
    20 	term.select_font("font/DejaVuSansMono.ttf", "font/DejaVuSansMono-Bold.ttf", 12);
    21 	term.erase();
    21 	term.erase();
    22 	term.putch(5, 5, 'W');
    22 	term.set_attr( term.prepare_attr(14, 1, 1) );
       
    23 
       
    24 	char hello[] = "Hello World!";
       
    25 	for (char *c = hello; *c; c++)
       
    26 	{
       
    27 		term.putch(5 + (c - hello), 5, *c);
       
    28 	}
    23 	term.commit();
    29 	term.commit();
    24 }
    30 }
    25 
    31 
    26 
    32 
    27 void Application::wait_and_process_event()
    33 void Application::wait_and_process_event()