rendered paste body#include <fcntl.h>#include <signal.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include <sys/ioctl.h>#include <sys/types.h>#include <sys/wait.h>#include <sys/vt.h>#include <stdint.h>#include "hotdog.h"static uint32 WIDTH, HEIGHT;static uint32 object_topwid, object_bottomwid;uint32 *screen;hd_engine *engine;static void update (hd_engine *e, int x, int y, int w, int h){ HD_LCD_Update (e->screen.framebuffer, 0, 0, WIDTH, HEIGHT);}int main(int argc, char *argv[]) { hd_surface srf; hd_object *obj[20]; hd_font *chic; HD_LCD_Init(); HD_LCD_GetInfo(0, &WIDTH, &HEIGHT, 0); screen = malloc(WIDTH * HEIGHT * 2); engine = HD_Initialize(WIDTH, HEIGHT, 16, screen, update); chic = HD_Font_LoadFNT("/mnt/iLaunch/Chicago.fnt"); obj[0] = HD_PNG_Create("/mnt/iLaunch/bg.png"); obj[0]->x = 0; obj[0]->y = 0; obj[0]->w = WIDTH; obj[0]->h = HEIGHT; srf = obj[0]->canvas;HD_Register(engine, obj[0]);HD_Render(engine);HD_Font_Draw (srf, chic, 50, 50, 0xFFFFFFFF, "iDoom");return 0;}