Allow MessageBox to work without window
This commit is contained in:
1 parent
fa2c9c46c5
commit
aa527dd0c2
4 files changed
+155
-145
No files matched your search
@@ -24,6 +24,8 @@
|
||||
|
||||
#include "../SDL_sysrender.h"
|
||||
|
||||
#include "SDL_render_psp_c.h"
|
||||
|
||||
#include <pspkernel.h>
|
||||
#include <pspdisplay.h>
|
||||
#include <pspgu.h>
|
||||
@@ -38,12 +40,6 @@
|
||||
|
||||
// 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))
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
Simple DirectMedia Layer
|
||||
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
arising from the use of this software.
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose,
|
||||
including commercial applications, and to alter it and redistribute it
|
||||
freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not
|
||||
claim that you wrote the original software. If you use this software
|
||||
in a product, an acknowledgment in the product documentation would be
|
||||
appreciated but is not required.
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
#ifndef SDL_VIDEO_RENDER_PSP_C_H
|
||||
#define SDL_VIDEO_RENDER_PSP_C_H
|
||||
|
||||
#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)
|
||||
|
||||
#endif // SDL_VIDEO_RENDER_PSP_C_H
|
||||
Reference in new issue
Block a user