Skip to content
Snippets Groups Projects
Commit 1c38ff59 authored by deuce's avatar deuce
Browse files

Set default values if get_window_info() isn't implemented.

parent 733c1911
Branches
Tags
No related merge requests found
......@@ -1045,5 +1045,15 @@ CIOLIBEXPORT int CIOLIBCALL ciolib_get_window_info(int *width, int *height, int
if(cio_api.get_window_info!=NULL)
return(cio_api.get_window_info(width,height,xpos,ypos));
else {
if(width)
*width=-1;
if(height)
*height=-1;
if(xpos)
*xpos=-1;
if(ypos)
*ypos=-1;
}
return(-1);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment