Allow MessageBox to work without window

This commit is contained in:
Francisco Javier Trujillo Mata
2024-08-22 18:08:12 +02:00
committed by Sam Lantinga
parent 0de601dc64
commit 1b8d5631ef
5 changed files with 150 additions and 168 deletions

View File

@@ -39,13 +39,6 @@
#include "SDL_render_psp.h"
/* PSP renderer implementation, based on the PGE */
#define PSP_SCREEN_WIDTH 480
#define PSP_SCREEN_HEIGHT 272
#define PSP_FRAME_BUFFER_WIDTH 512
#define PSP_FRAME_BUFFER_SIZE (PSP_FRAME_BUFFER_WIDTH * PSP_SCREEN_HEIGHT)
static unsigned int __attribute__((aligned(16))) DisplayList[262144];
#define COL5650(r, g, b, a) ((r >> 3) | ((g >> 2) << 5) | ((b >> 3) << 11))

View File

@@ -22,6 +22,12 @@
/* this header is meant to be included after the other related internal SDL
headers. it's the interface between psp renderer and video driver code. */
#define PSP_SCREEN_WIDTH 480
#define PSP_SCREEN_HEIGHT 272
#define PSP_FRAME_BUFFER_WIDTH 512
#define PSP_FRAME_BUFFER_SIZE (PSP_FRAME_BUFFER_WIDTH * PSP_SCREEN_HEIGHT)
enum SDL_PSP_RenderProps
{
SDL_PSP_RENDERPROPS_FRONTBUFFER,