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
51b19abe
Commit
51b19abe
authored
Sep 27, 2010
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup in patches from Coursoud
parent
45e68f6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
SDL_compat.c
src/SDL_compat.c
+3
-6
SDL_video.c
src/video/SDL_video.c
+1
-1
No files found.
src/SDL_compat.c
View file @
51b19abe
...
@@ -320,12 +320,9 @@ SDL_VideoPaletteChanged(void *userdata, SDL_Palette * palette)
...
@@ -320,12 +320,9 @@ SDL_VideoPaletteChanged(void *userdata, SDL_Palette * palette)
}
}
}
}
if
(
userdata
==
SDL_VideoSurface
)
{
if
(
userdata
==
SDL_VideoSurface
)
{
if
(
SDL_SetDisplayPalette
(
palette
->
colors
,
0
,
palette
->
ncolors
)
<
0
)
{
/* The display may not have a palette, but always set texture palette */
/* The display surface not necessarily needs to have a palette.
SDL_SetDisplayPalette
(
palette
->
colors
,
0
,
palette
->
ncolors
);
* Just do nothing here and try to set the texture palette.
*/
//return -1;
}
if
(
SDL_SetTexturePalette
if
(
SDL_SetTexturePalette
(
SDL_VideoTexture
,
palette
->
colors
,
0
,
palette
->
ncolors
)
<
0
)
{
(
SDL_VideoTexture
,
palette
->
colors
,
0
,
palette
->
ncolors
)
<
0
)
{
return
-
1
;
return
-
1
;
...
...
src/video/SDL_video.c
View file @
51b19abe
...
@@ -1467,7 +1467,7 @@ SDL_DestroyWindow(SDL_Window * window)
...
@@ -1467,7 +1467,7 @@ SDL_DestroyWindow(SDL_Window * window)
SDL_GL_UnloadLibrary
();
SDL_GL_UnloadLibrary
();
}
}
/* Now invalidate magic */
/* Now invalidate magic */
window
->
magic
=
NULL
;
window
->
magic
=
NULL
;
/* Unlink the window from the list */
/* Unlink the window from the list */
...
...
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