Dividing an unsigned int by 2 is different from dividing an int by 2
This division was the cause for vlc(Win32) displaying a black screen
when zooming exceeded the display size (alt-'o')
Weirdly, there was no problem for Linux !!?? and also no regression :)
place->x = cfg->display.width - place->width;
break;
default:
- place->x = (cfg->display.width - place->width) / 2;
+ place->x = ((int)cfg->display.width - (int)place->width) / 2;
break;
}
place->y = cfg->display.height - place->height;
break;
default:
- place->y = (cfg->display.height - place->height) / 2;
+ place->y = ((int)cfg->display.height - (int)place->height) / 2;
break;
}
}