Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
e5592bfb
Commit
e5592bfb
authored
Jul 07, 2010
by
Eli Gottlieb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed up shape files as best I can.
parent
9f24e9f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
SDL_shape.c
src/video/SDL_shape.c
+1
-1
SDL_x11shape.c
src/video/x11/SDL_x11shape.c
+1
-0
No files found.
src/video/SDL_shape.c
View file @
e5592bfb
...
@@ -62,7 +62,7 @@ void SDL_CalculateShapeBitmap(Uint8 alphacutoff,SDL_Surface *shape,Uint8* bitmap
...
@@ -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
)
...
...
src/video/x11/SDL_x11shape.c
View file @
e5592bfb
...
@@ -20,6 +20,7 @@
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment