Port to new API for
#include "fire.hpp"
-using namespace engine;
-
-using namespace graphics;
+using namespace blit;
uint8_t logo[16][16] = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
@@ -40,8 +38,8 @@ uint8_t __pb[screen_width * screen_height] __attribute__((section(".fb")));
/* create surfaces */
//surface fb((uint8_t *)__fb, size(screen_width, screen_height), pixel_format::RGB);
-surface m((uint8_t *)__m, size(screen_width, screen_height), pixel_format::M);
-surface fbb((uint8_t *)__pb, size(screen_width, screen_height), pixel_format::P);
+surface m((uint8_t *)__m, pixel_format::M, size(screen_width, screen_height));
+surface fbb((uint8_t *)__pb, pixel_format::P, size(screen_width, screen_height));
/* setup */
void init() {
@@ -328,7 +326,7 @@ void render(uint32_t time_ms) {
void update(uint32_t time) {
- if (pressed(input::A)) {
+ if (pressed(button::A)) {
set_screen_mode(screen_mode::lores);
}
else {
