Skip to content

Commit

Permalink
VIDEO: Access WindowMan methods directly instead of per GfxMan
Browse files Browse the repository at this point in the history
  • Loading branch information
farmboy0 authored and DrMcCoy committed Oct 23, 2016
1 parent 4394c49 commit bef2127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ void VideoDecoder::getQuadDimensions(float &width, float &height) const {
// No scaling requested
return;

float screenWidth = GfxMan.getScreenWidth();
float screenHeight = GfxMan.getScreenHeight();
float screenWidth = WindowMan.getWindowWidth();
float screenHeight = WindowMan.getWindowHeight();

if ((_scale == kScaleUp) && (width <= screenWidth) && (height <= screenHeight))
// Only upscaling requested, but not necessary
Expand Down

0 comments on commit bef2127

Please sign in to comment.