mirror of
https://github.com/encounter/SDL.git
synced 2025-12-10 22:17:59 +00:00
OCD fixes: Adds a space before */
This commit is contained in:
@@ -958,10 +958,10 @@ SDL_SW_SetupYUVDisplay(SDL_SW_YUVTexture * swdata, Uint32 target_format)
|
||||
if (SDL_HasMMX() && (Rmask == 0xF800) &&
|
||||
(Gmask == 0x07E0) && (Bmask == 0x001F)
|
||||
&& (swdata->w & 15) == 0) {
|
||||
/*printf("Using MMX 16-bit 565 dither\n");*/
|
||||
/*printf("Using MMX 16-bit 565 dither\n"); */
|
||||
swdata->Display1X = Color565DitherYV12MMX1X;
|
||||
} else {
|
||||
/*printf("Using C 16-bit dither\n");*/
|
||||
/*printf("Using C 16-bit dither\n"); */
|
||||
swdata->Display1X = Color16DitherYV12Mod1X;
|
||||
}
|
||||
#else
|
||||
@@ -979,10 +979,10 @@ SDL_SW_SetupYUVDisplay(SDL_SW_YUVTexture * swdata, Uint32 target_format)
|
||||
if (SDL_HasMMX() && (Rmask == 0x00FF0000) &&
|
||||
(Gmask == 0x0000FF00) &&
|
||||
(Bmask == 0x000000FF) && (swdata->w & 15) == 0) {
|
||||
/*printf("Using MMX 32-bit dither\n");*/
|
||||
/*printf("Using MMX 32-bit dither\n"); */
|
||||
swdata->Display1X = ColorRGBDitherYV12MMX1X;
|
||||
} else {
|
||||
/*printf("Using C 32-bit dither\n");*/
|
||||
/*printf("Using C 32-bit dither\n"); */
|
||||
swdata->Display1X = Color32DitherYV12Mod1X;
|
||||
}
|
||||
#else
|
||||
|
||||
@@ -874,7 +874,7 @@ GetScaleQuality(void)
|
||||
|
||||
if (!hint || *hint == '0' || SDL_strcasecmp(hint, "nearest") == 0) {
|
||||
return D3DTEXF_POINT;
|
||||
} else /*if (*hint == '1' || SDL_strcasecmp(hint, "linear") == 0)*/ {
|
||||
} else /*if (*hint == '1' || SDL_strcasecmp(hint, "linear") == 0) */ {
|
||||
return D3DTEXF_LINEAR;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -310,7 +310,7 @@ GL_ResetState(SDL_Renderer *renderer)
|
||||
data->glDisable(GL_DEPTH_TEST);
|
||||
data->glDisable(GL_CULL_FACE);
|
||||
/* This ended up causing video discrepancies between OpenGL and Direct3D */
|
||||
/*data->glEnable(GL_LINE_SMOOTH);*/
|
||||
/*data->glEnable(GL_LINE_SMOOTH); */
|
||||
|
||||
data->glMatrixMode(GL_MODELVIEW);
|
||||
data->glLoadIdentity();
|
||||
@@ -638,7 +638,7 @@ GL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
|
||||
return -1;
|
||||
}
|
||||
if ((renderdata->GL_ARB_texture_rectangle_supported)
|
||||
/*&& texture->access != SDL_TEXTUREACCESS_TARGET*/){
|
||||
/*&& texture->access != SDL_TEXTUREACCESS_TARGET */){
|
||||
data->type = GL_TEXTURE_RECTANGLE_ARB;
|
||||
texture_w = texture->w;
|
||||
texture_h = texture->h;
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
/* OpenGL shader implementation */
|
||||
|
||||
/*#define DEBUG_SHADERS*/
|
||||
/*#define DEBUG_SHADERS */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
@@ -458,7 +458,7 @@ PSP_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
|
||||
static int
|
||||
PSP_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
|
||||
{
|
||||
/* PSP_RenderData *renderdata = (PSP_RenderData *) renderer->driverdata;*/
|
||||
/* PSP_RenderData *renderdata = (PSP_RenderData *) renderer->driverdata; */
|
||||
PSP_TextureData* psp_texture = (PSP_TextureData*) SDL_calloc(1, sizeof(*psp_texture));;
|
||||
|
||||
if(!psp_texture)
|
||||
@@ -528,7 +528,7 @@ static int
|
||||
PSP_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
|
||||
const SDL_Rect * rect, const void *pixels, int pitch)
|
||||
{
|
||||
/* PSP_TextureData *psp_texture = (PSP_TextureData *) texture->driverdata;*/
|
||||
/* PSP_TextureData *psp_texture = (PSP_TextureData *) texture->driverdata; */
|
||||
const Uint8 *src;
|
||||
Uint8 *dst;
|
||||
int row, length,dpitch;
|
||||
@@ -895,8 +895,8 @@ PSP_RenderCopyEx(SDL_Renderer * renderer, SDL_Texture * texture,
|
||||
sceGuColor(0xFFFFFFFF);
|
||||
}
|
||||
|
||||
/* x += width * 0.5f;*/
|
||||
/* y += height * 0.5f;*/
|
||||
/* x += width * 0.5f; */
|
||||
/* y += height * 0.5f; */
|
||||
x += centerx;
|
||||
y += centery;
|
||||
|
||||
@@ -904,8 +904,8 @@ PSP_RenderCopyEx(SDL_Renderer * renderer, SDL_Texture * texture,
|
||||
|
||||
MathSincos(degToRad(angle), &s, &c);
|
||||
|
||||
/* width *= 0.5f;*/
|
||||
/* height *= 0.5f;*/
|
||||
/* width *= 0.5f; */
|
||||
/* height *= 0.5f; */
|
||||
width -= centerx;
|
||||
height -= centery;
|
||||
|
||||
@@ -968,7 +968,7 @@ PSP_RenderPresent(SDL_Renderer * renderer)
|
||||
sceGuFinish();
|
||||
sceGuSync(0,0);
|
||||
|
||||
/* if(data->vsync)*/
|
||||
/* if(data->vsync) */
|
||||
sceDisplayWaitVblankStart();
|
||||
|
||||
data->backbuffer = data->frontbuffer;
|
||||
@@ -1007,8 +1007,8 @@ PSP_DestroyRenderer(SDL_Renderer * renderer)
|
||||
StartDrawing(renderer);
|
||||
|
||||
sceGuTerm();
|
||||
/* vfree(data->backbuffer);*/
|
||||
/* vfree(data->frontbuffer);*/
|
||||
/* vfree(data->backbuffer); */
|
||||
/* vfree(data->frontbuffer); */
|
||||
|
||||
data->initialized = SDL_FALSE;
|
||||
data->displayListAvail = SDL_FALSE;
|
||||
|
||||
@@ -357,7 +357,7 @@ SDL_Surface *_rotateSurface(SDL_Surface * src, double angle, int centerx, int ce
|
||||
if (src == NULL)
|
||||
return (NULL);
|
||||
|
||||
if (src->flags & SDL_TRUE/*SDL_SRCCOLORKEY*/)
|
||||
if (src->flags & SDL_TRUE/*SDL_SRCCOLORKEY */)
|
||||
{
|
||||
colorkey = _colorkey(src);
|
||||
SDL_GetRGB(colorkey, src->format, &r, &g, &b);
|
||||
@@ -391,7 +391,7 @@ SDL_Surface *_rotateSurface(SDL_Surface * src, double angle, int centerx, int ce
|
||||
SDL_BlitSurface(src, NULL, rz_src, NULL);
|
||||
|
||||
if(colorKeyAvailable)
|
||||
SDL_SetColorKey(src, SDL_TRUE /*SDL_SRCCOLORKEY*/, colorkey);
|
||||
SDL_SetColorKey(src, SDL_TRUE /*SDL_SRCCOLORKEY */, colorkey);
|
||||
src_converted = 1;
|
||||
is32bit = 1;
|
||||
}
|
||||
@@ -459,8 +459,8 @@ SDL_Surface *_rotateSurface(SDL_Surface * src, double angle, int centerx, int ce
|
||||
/*
|
||||
* Turn on source-alpha support
|
||||
*/
|
||||
/*SDL_SetAlpha(rz_dst, SDL_SRCALPHA, 255);*/
|
||||
SDL_SetColorKey(rz_dst, /*SDL_SRCCOLORKEY*/ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
|
||||
/*SDL_SetAlpha(rz_dst, SDL_SRCALPHA, 255); */
|
||||
SDL_SetColorKey(rz_dst, /*SDL_SRCCOLORKEY */ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
|
||||
} else {
|
||||
/*
|
||||
* Copy palette and colorkey info
|
||||
@@ -475,7 +475,7 @@ SDL_Surface *_rotateSurface(SDL_Surface * src, double angle, int centerx, int ce
|
||||
transformSurfaceY(rz_src, rz_dst, centerx, centery,
|
||||
(int) (sangleinv), (int) (cangleinv),
|
||||
flipx, flipy);
|
||||
SDL_SetColorKey(rz_dst, /*SDL_SRCCOLORKEY*/ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
|
||||
SDL_SetColorKey(rz_dst, /*SDL_SRCCOLORKEY */ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
|
||||
}
|
||||
/*
|
||||
* Unlock source surface
|
||||
|
||||
Reference in New Issue
Block a user