diff --git a/es-core/src/components/VideoPlayerComponent.cpp b/es-core/src/components/VideoPlayerComponent.cpp index 1527f671f..9133a84c5 100644 --- a/es-core/src/components/VideoPlayerComponent.cpp +++ b/es-core/src/components/VideoPlayerComponent.cpp @@ -118,7 +118,7 @@ void VideoPlayerComponent::startVideo() 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 x2 = (int)(x1 + mSize.y()); const int y2 = (int)(y1 + mSize.x()); @@ -128,8 +128,8 @@ void VideoPlayerComponent::startVideo() case 2: { - const int x1 = (int)(Renderer::getScreenWidth() - Renderer::getScreenOffsetX() - x - mSize.x()); - const int y1 = (int)(Renderer::getScreenHeight() - Renderer::getScreenOffsetY() - y - mSize.y()); + const int x1 = (int)(Renderer::getWindowWidth() - Renderer::getScreenOffsetX() - x - mSize.x()); + const int y1 = (int)(Renderer::getWindowHeight() - Renderer::getScreenOffsetY() - y - mSize.y()); const int x2 = (int)(x1 + mSize.x()); const int y2 = (int)(y1 + mSize.y()); sprintf(buf1, "%d,%d,%d,%d", x1, y1, x2, y2); @@ -139,7 +139,7 @@ void VideoPlayerComponent::startVideo() case 3: { 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 y2 = (int)(y1 + mSize.x()); sprintf(buf1, "%d,%d,%d,%d", x1, y1, x2, y2);