comparison examples/example-message/example-message.c @ 508:7f7602bae0bd

examples: minor touches
author David Demelier <markand@malikania.fr>
date Fri, 03 Mar 2023 19:45:00 +0100
parents 52a305833381
children f45a023f6690
comparison
equal deleted inserted replaced
507:d49a05e7a5b5 508:7f7602bae0bd
27 #include <mlk/core/sys.h> 27 #include <mlk/core/sys.h>
28 #include <mlk/core/util.h> 28 #include <mlk/core/util.h>
29 #include <mlk/core/window.h> 29 #include <mlk/core/window.h>
30 30
31 #include <mlk/ui/frame.h> 31 #include <mlk/ui/frame.h>
32 #include <mlk/ui/theme.h>
33 #include <mlk/ui/ui.h> 32 #include <mlk/ui/ui.h>
34 33
35 #include <mlk/rpg/message.h> 34 #include <mlk/rpg/message.h>
36 #include <mlk/rpg/rpg.h> 35 #include <mlk/rpg/rpg.h>
37 36
74 } 73 }
75 74
76 static void 75 static void
77 draw(struct mlk_state *st) 76 draw(struct mlk_state *st)
78 { 77 {
79 mlk_painter_set_color(0xffffffff); 78 mlk_painter_set_color(MLK_EXAMPLE_BG);
80 mlk_painter_clear(); 79 mlk_painter_clear();
81 message_draw(st->data); 80 message_draw(st->data);
82 mlk_painter_present(); 81 mlk_painter_present();
83 } 82 }
84 83