Fixed up shape files as best I can.
This commit is contained in:
parent
9f24e9f619
commit
e5592bfb4b
2 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,7 @@ void SDL_CalculateShapeBitmap(Uint8 alphacutoff,SDL_Surface *shape,Uint8* bitmap
|
||||||
}
|
}
|
||||||
|
|
||||||
int SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode) {
|
int SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode) {
|
||||||
if(window == NULL || !SDL_WindowIsShaped(window))
|
if(window == NULL || !SDL_IsShapedWindow(window))
|
||||||
//The window given was not a shapeable window.
|
//The window given was not a shapeable window.
|
||||||
return -2;
|
return -2;
|
||||||
if(shape == NULL)
|
if(shape == NULL)
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
eligottlieb@gmail.com
|
eligottlieb@gmail.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include <X11/extensions/shape.h>
|
#include <X11/extensions/shape.h>
|
||||||
#include "SDL_x11shape.h"
|
#include "SDL_x11shape.h"
|
||||||
#include "SDL_x11window.h"
|
#include "SDL_x11window.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue