mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 18:15:35 +00:00
cleaning
This commit is contained in:
parent
09f4711f40
commit
520c89a00a
|
@ -1108,7 +1108,6 @@ PSP_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *verti
|
||||||
|
|
||||||
case SDL_RENDERCMD_SETVIEWPORT: {
|
case SDL_RENDERCMD_SETVIEWPORT: {
|
||||||
SDL_Rect *viewport = &cmd->data.viewport.rect;
|
SDL_Rect *viewport = &cmd->data.viewport.rect;
|
||||||
/* Viewport */
|
|
||||||
sceGuOffset(2048 - (viewport->w >> 1), 2048 - (viewport->h >> 1));
|
sceGuOffset(2048 - (viewport->w >> 1), 2048 - (viewport->h >> 1));
|
||||||
sceGuViewport(2048, 2048, viewport->w, viewport->h);
|
sceGuViewport(2048, 2048, viewport->w, viewport->h);
|
||||||
sceGuScissor(viewport->x, viewport->y, viewport->w, viewport->h);
|
sceGuScissor(viewport->x, viewport->y, viewport->w, viewport->h);
|
||||||
|
@ -1117,7 +1116,6 @@ PSP_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *verti
|
||||||
|
|
||||||
case SDL_RENDERCMD_SETCLIPRECT: {
|
case SDL_RENDERCMD_SETCLIPRECT: {
|
||||||
const SDL_Rect *rect = &cmd->data.cliprect.rect;
|
const SDL_Rect *rect = &cmd->data.cliprect.rect;
|
||||||
/* Scissoring */
|
|
||||||
if(cmd->data.cliprect.enabled){
|
if(cmd->data.cliprect.enabled){
|
||||||
sceGuEnable(GU_SCISSOR_TEST);
|
sceGuEnable(GU_SCISSOR_TEST);
|
||||||
sceGuScissor(rect->x, rect->y, rect->w, rect->h);
|
sceGuScissor(rect->x, rect->y, rect->w, rect->h);
|
||||||
|
@ -1402,14 +1400,10 @@ PSP_CreateRenderer(SDL_Window * window, Uint32 flags)
|
||||||
case GU_PSM_4444:
|
case GU_PSM_4444:
|
||||||
case GU_PSM_5650:
|
case GU_PSM_5650:
|
||||||
case GU_PSM_5551:
|
case GU_PSM_5551:
|
||||||
//data->frontbuffer = (unsigned int *)(PSP_FRAME_BUFFER_SIZE<<1);
|
|
||||||
//data->backbuffer = (unsigned int *)(0);
|
|
||||||
data->bpp = 2;
|
data->bpp = 2;
|
||||||
data->psm = pixelformat;
|
data->psm = pixelformat;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
//data->frontbuffer = (unsigned int *)(PSP_FRAME_BUFFER_SIZE<<2);
|
|
||||||
//data->backbuffer = (unsigned int *)(0);
|
|
||||||
data->bpp = 4;
|
data->bpp = 4;
|
||||||
data->psm = GU_PSM_8888;
|
data->psm = GU_PSM_8888;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue