int xpos = 5;
#ifdef GRADIENT_DRAWING
if (icon) {
- drawTVMedia(*icon, xpos,0,30,30,TopLeftLimited);
+ drawTVMedia(*icon, static_cast<float>(xpos), 0,30,30,TopLeftLimited);
xpos+=5+30;
}
#endif
{
BoxStack::getInstance()->update(this);
}
- else if (x<0 || y <0 || x>(int)getWidth() || y>(int)getHeight())
+ else if (coordsOutsideBox(m))
{
BoxStack::getInstance()->handleCommand(Input::BACK); //simulate cancel press
}
{
if (m->message == Message::MOUSE_LBDOWN)
{
- int x = m->parameter - (int)getScreenX();
- int y = m->tag - (int)getScreenY();
+ int x = m->parameter - getScreenX();
+ int y = m->tag - getScreenY();
if (!barShowing)
{
boxstack->handleCommand(Input::OK); //simulate rok press
}
if (poster.height) {
// float aspect=((float)poster.height)/((float)poster.width)/Osd::getInstance()->getPixelAspect();
- drawTVMedia(poster.info,buttonRegion.x,
- tabbar.getY2()-3,
- buttonRegion.w,/*buttonRegion.w*aspect*/0.f,BottomLeft);
+ drawTVMedia(poster.info, static_cast<float>(buttonRegion.x), static_cast<float>(tabbar.getY2() - 3),
+ static_cast<float>(buttonRegion.w), /*buttonRegion.w*aspect*/ 0.f, BottomLeft);
}
}