mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 16:15:39 +00:00
Merge pull request #650 from pjft/fix-rotation-omx
Fix rotation for OMX Player
This commit is contained in:
commit
9f7284a409
|
@ -118,7 +118,7 @@ void VideoPlayerComponent::startVideo()
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
const int x1 = (int)(Renderer::getScreenWidth() - Renderer::getScreenOffsetY() - y - mSize.y());
|
const int x1 = (int)(Renderer::getWindowWidth() - Renderer::getScreenOffsetY() - y - mSize.y());
|
||||||
const int y1 = (int)(Renderer::getScreenOffsetX() + x);
|
const int y1 = (int)(Renderer::getScreenOffsetX() + x);
|
||||||
const int x2 = (int)(x1 + mSize.y());
|
const int x2 = (int)(x1 + mSize.y());
|
||||||
const int y2 = (int)(y1 + mSize.x());
|
const int y2 = (int)(y1 + mSize.x());
|
||||||
|
@ -128,8 +128,8 @@ void VideoPlayerComponent::startVideo()
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
{
|
{
|
||||||
const int x1 = (int)(Renderer::getScreenWidth() - Renderer::getScreenOffsetX() - x - mSize.x());
|
const int x1 = (int)(Renderer::getWindowWidth() - Renderer::getScreenOffsetX() - x - mSize.x());
|
||||||
const int y1 = (int)(Renderer::getScreenHeight() - Renderer::getScreenOffsetY() - y - mSize.y());
|
const int y1 = (int)(Renderer::getWindowHeight() - Renderer::getScreenOffsetY() - y - mSize.y());
|
||||||
const int x2 = (int)(x1 + mSize.x());
|
const int x2 = (int)(x1 + mSize.x());
|
||||||
const int y2 = (int)(y1 + mSize.y());
|
const int y2 = (int)(y1 + mSize.y());
|
||||||
sprintf(buf1, "%d,%d,%d,%d", x1, y1, x2, y2);
|
sprintf(buf1, "%d,%d,%d,%d", x1, y1, x2, y2);
|
||||||
|
@ -139,7 +139,7 @@ void VideoPlayerComponent::startVideo()
|
||||||
case 3:
|
case 3:
|
||||||
{
|
{
|
||||||
const int x1 = (int)(Renderer::getScreenOffsetY() + y);
|
const int x1 = (int)(Renderer::getScreenOffsetY() + y);
|
||||||
const int y1 = (int)(Renderer::getScreenHeight() - Renderer::getScreenOffsetX() - x - mSize.x());
|
const int y1 = (int)(Renderer::getWindowHeight() - Renderer::getScreenOffsetX() - x - mSize.x());
|
||||||
const int x2 = (int)(x1 + mSize.y());
|
const int x2 = (int)(x1 + mSize.y());
|
||||||
const int y2 = (int)(y1 + mSize.x());
|
const int y2 = (int)(y1 + mSize.x());
|
||||||
sprintf(buf1, "%d,%d,%d,%d", x1, y1, x2, y2);
|
sprintf(buf1, "%d,%d,%d,%d", x1, y1, x2, y2);
|
||||||
|
|
Loading…
Reference in a new issue