357
357
fy *= (double) m_menu->GetFrameResolution().GetHeight() / m_menu->GetResolution().GetHeight();
358
358
int width = round(GetWidth()*fx);
359
359
int height = round(GetHeight()*fy);
364
360
int padY = mode == ssmLETTERBOX && !ignorePadding ? m_menu->GetFrameResolution().GetHeight()*0.125: 0;
365
361
int cropX = mode == ssmPANSCAN ? m_menu->GetFrameResolution().GetWidth()*0.125 : 0;
366
return wxRect(round((GetX() - cropX)*fx), round(GetY()*fy) + padY, width, height);
368
return wxRect(x, y, width, height);
369
371
unsigned int MenuObject::CalcSize(MenuObjectSize& size, bool width) {