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
0a86be6a
Commit
0a86be6a
authored
Aug 12, 2010
by
Eli Gottlieb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added SDL_SetWindowPosition() call to SDL_SetWindowShape(), going to see what this does on Windows.
parent
25775cdb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
SDL_shape.c
src/video/SDL_shape.c
+1
-0
SDL_win32shape.c
src/video/win32/SDL_win32shape.c
+3
-3
No files found.
src/video/SDL_shape.c
View file @
0a86be6a
...
...
@@ -240,6 +240,7 @@ SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *sh
result
=
window
->
display
->
device
->
shape_driver
.
SetWindowShape
(
window
->
shaper
,
shape
,
shapeMode
);
window
->
shaper
->
hasshape
=
SDL_TRUE
;
if
((
window
->
shaper
->
usershownflag
&
SDL_WINDOW_SHOWN
)
==
SDL_WINDOW_SHOWN
)
{
SDL_SetWindowPosition
(
window
,
window
->
x
,
window
->
y
);
SDL_ShowWindow
(
window
);
window
->
shaper
->
usershownflag
&=
!
SDL_WINDOW_SHOWN
;
}
...
...
src/video/win32/SDL_win32shape.c
View file @
0a86be6a
...
...
@@ -105,11 +105,11 @@ Win32_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShape
/*
* Set the new region mask for the window
*/
mask_region
=
CreatePolyPolygonRgn
(
polygons
,
polygonVertexNumbers
,
num_rects
,
WINDING
);
mask_region
=
CreatePolyPolygonRgn
(
polygons
,
polygonVertexNumbers
,
num_rects
,
WINDING
);
SetWindowRgn
(((
SDL_WindowData
*
)(
shaper
->
window
->
driverdata
))
->
hwnd
,
mask_region
,
TRUE
);
SDL_free
(
polygons
);
SDL_free
(
polygonVertexNumbers
);
SDL_free
(
polygons
);
SDL_free
(
polygonVertexNumbers
);
return
0
;
}
...
...
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