* \NOTE
* Use the 24 Bits
* 32 Bits is not supported for video playing.
+ * But for the transparent background, use the 32 bits, and give up video.
*/
- gem->pixmap = XCreatePixmap(disp, parent, info->w, info->h, 24 /* (info->pixel_size << 3) */);
+ gem->pixmap = XCreatePixmap(disp, parent, info->w, info->h, (info->pixel_size << 3));
if (gem->pixmap == (Pixmap)0) {
ErrPrint("Failed to create a pixmap\n");
DbgFree(buffer);
inst->lb.priority = priority;
if (inst->lb.width != w || inst->lb.height != h)
- instance_send_resized_event(inst, IS_LB, w, h, 0);
+ instance_send_resized_event(inst, IS_LB, w, h, LB_STATUS_SUCCESS);
inst->lb.width = w;
inst->lb.height = h;
HAPI void instance_set_pd_info(struct inst_info *inst, int w, int h)
{
if (inst->pd.width != w || inst->pd.height != h)
- instance_send_resized_event(inst, IS_PD, w, h, 0);
+ instance_send_resized_event(inst, IS_PD, w, h, LB_STATUS_SUCCESS);
inst->pd.width = w;
inst->pd.height = h;