* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.tizenopensource.org/license
+ * http://floralicense.org/license/
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* Use the 24 bits Pixmap for Video player
*/
xim = XShmCreateImage(s_info.disp, s_info.visual,
- 24 /* (s_info.depth << 3) */, ZPixmap, NULL,
+ (s_info.depth << 3), ZPixmap, NULL,
&si,
info->w, info->h);
if (xim == NULL) {
int fb_size(struct fb_info *info)
{
+ if (!info)
+ return 0;
+
info->bufsz = info->w * info->h * s_info.depth;
- return info ? info->bufsz : 0;
+ return info->bufsz;
}
/* End of a file */