Fixing variable naming style.
This commit is contained in:
parent
25775cdb23
commit
e9b801a764
1 changed files with 7 additions and 7 deletions
|
@ -226,7 +226,7 @@ SDL_FreeShapeTree(SDL_ShapeTree** shapeTree) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode) {
|
SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode) {
|
||||||
int result;
|
int result;
|
||||||
if(window == NULL || !SDL_IsShapedWindow(window))
|
if(window == NULL || !SDL_IsShapedWindow(window))
|
||||||
//The window given was not a shapeable window.
|
//The window given was not a shapeable window.
|
||||||
|
@ -235,9 +235,9 @@ SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *sh
|
||||||
//Invalid shape argument.
|
//Invalid shape argument.
|
||||||
return SDL_INVALID_SHAPE_ARGUMENT;
|
return SDL_INVALID_SHAPE_ARGUMENT;
|
||||||
|
|
||||||
if(shapeMode != NULL)
|
if(shape_mode != NULL)
|
||||||
window->shaper->mode = *shapeMode;
|
window->shaper->mode = *shape_mode;
|
||||||
result = window->display->device->shape_driver.SetWindowShape(window->shaper,shape,shapeMode);
|
result = window->display->device->shape_driver.SetWindowShape(window->shaper,shape,shape_mode);
|
||||||
window->shaper->hasshape = SDL_TRUE;
|
window->shaper->hasshape = SDL_TRUE;
|
||||||
if((window->shaper->usershownflag & SDL_WINDOW_SHOWN) == SDL_WINDOW_SHOWN) {
|
if((window->shaper->usershownflag & SDL_WINDOW_SHOWN) == SDL_WINDOW_SHOWN) {
|
||||||
SDL_ShowWindow(window);
|
SDL_ShowWindow(window);
|
||||||
|
@ -254,9 +254,9 @@ SDL_WindowHasAShape(SDL_Window *window) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
SDL_GetShapedWindowMode(SDL_Window *window,SDL_WindowShapeMode *shapeMode) {
|
SDL_GetShapedWindowMode(SDL_Window *window,SDL_WindowShapeMode *shape_mode) {
|
||||||
if(window != NULL && SDL_IsShapedWindow(window)) {
|
if(window != NULL && SDL_IsShapedWindow(window)) {
|
||||||
if(shapeMode == NULL) {
|
if(shape_mode == NULL) {
|
||||||
if(SDL_WindowHasAShape(window))
|
if(SDL_WindowHasAShape(window))
|
||||||
//The window given has a shape.
|
//The window given has a shape.
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -265,7 +265,7 @@ SDL_GetShapedWindowMode(SDL_Window *window,SDL_WindowShapeMode *shapeMode) {
|
||||||
return SDL_WINDOW_LACKS_SHAPE;
|
return SDL_WINDOW_LACKS_SHAPE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
*shapeMode = window->shaper->mode;
|
*shape_mode = window->shaper->mode;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue