Fix a couple of warnings
This commit is contained in:
parent
3557ef7451
commit
332278ee6f
2 changed files with 2 additions and 2 deletions
|
@ -274,7 +274,7 @@ static void
|
||||||
SDL_FillRect2(Uint8 * pixels, int pitch, Uint32 color, int w, int h)
|
SDL_FillRect2(Uint8 * pixels, int pitch, Uint32 color, int w, int h)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
Uint8 *p = NULL;
|
Uint16 *p = NULL;
|
||||||
|
|
||||||
while (h--) {
|
while (h--) {
|
||||||
n = w;
|
n = w;
|
||||||
|
|
|
@ -90,7 +90,7 @@ int
|
||||||
X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode) {
|
X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode) {
|
||||||
SDL_ShapeData *data = NULL;
|
SDL_ShapeData *data = NULL;
|
||||||
SDL_WindowData *windowdata = NULL;
|
SDL_WindowData *windowdata = NULL;
|
||||||
Pixmap shapemask = NULL;
|
Pixmap shapemask;
|
||||||
|
|
||||||
if(shaper == NULL || shape == NULL || shaper->driverdata == NULL)
|
if(shaper == NULL || shape == NULL || shaper->driverdata == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue