mirror of
https://github.com/encounter/BootCtr9.git
synced 2026-03-30 11:03:49 -07:00
775dd894d8
the posibility to set a delay for checking the pressed key
26 lines
896 B
C
26 lines
896 B
C
#pragma once
|
|
|
|
#include "common.h"
|
|
|
|
#define BYTES_PER_PIXEL 3
|
|
#define SCREEN_WIDTH 240
|
|
#define SCREEN_HEIGHT 400
|
|
|
|
#define SCREEN_SIZE (BYTES_PER_PIXEL * SCREEN_WIDTH * SCREEN_HEIGHT)
|
|
|
|
#define RGB(r,g,b) (r<<24|b<<16|g<<8|r)
|
|
|
|
#define TOP_SCREEN0 (u8*)(0x18300000)
|
|
#define BOT_SCREEN0 (u8*)(0x18346500)
|
|
extern int current_y;
|
|
|
|
void ClearScreen(unsigned char *screen, int color);
|
|
void clearScreens();
|
|
void DrawCharacter(unsigned char *screen, int character, int x, int y, int color, int bgcolor);
|
|
void DrawHex(unsigned char *screen, unsigned int hex, int x, int y, int color, int bgcolor);
|
|
u32 DrawString(unsigned char *screen, const char *str, int x, int y, int color, int bgcolor);
|
|
void DrawStringF(int x, int y, const char *format, ...);
|
|
void DrawHexWithName(unsigned char *screen, const char *str, unsigned int hex, int x, int y, int color, int bgcolor);
|
|
|
|
void drawDebug(const char *format, ...);
|