Don't readvertise RPG window every time
This commit is contained in:
parent
e3a23bad5b
commit
2d7b15b231
@ -112,7 +112,6 @@ void display() {
|
||||
render_map(my_x,my_y);
|
||||
draw_sprite(ctx, sprites[124 + direction], decor_left_width + raw_x_offset + map_x + CELL_SIZE * 4, decor_top_height + raw_y_offset + map_y + CELL_SIZE * 4);
|
||||
render_decorations(window, ctx, "RPG Demo");
|
||||
yutani_window_advertise(yctx, window, "RPG Demo");
|
||||
flip(ctx);
|
||||
yutani_flip(yctx, window);
|
||||
}
|
||||
@ -257,6 +256,8 @@ int main(int argc, char ** argv) {
|
||||
flip(ctx);
|
||||
yutani_flip(yctx, window);
|
||||
|
||||
yutani_window_advertise(yctx, window, "RPG Demo");
|
||||
|
||||
init_decorations();
|
||||
|
||||
map_x = WINDOW_SIZE - (64 * 9) / 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user