mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 23:39:26 +02:00
fix unix build
This commit is contained in:
parent
52f0b5f6c8
commit
cc8aa540b4
2 changed files with 1 additions and 4 deletions
|
@ -184,7 +184,6 @@ void HmdDisplayPlugin::internalPresent() {
|
||||||
sourceSize.x >>= 1;
|
sourceSize.x >>= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
float originalCenter = (sourceSize.x / 2);
|
|
||||||
float shiftLeftBy = getLeftCenterPixel() - (sourceSize.x / 2);
|
float shiftLeftBy = getLeftCenterPixel() - (sourceSize.x / 2);
|
||||||
float newWidth = sourceSize.x - shiftLeftBy;
|
float newWidth = sourceSize.x - shiftLeftBy;
|
||||||
|
|
||||||
|
@ -218,8 +217,6 @@ void HmdDisplayPlugin::internalPresent() {
|
||||||
ratio = (float)windowSize.y / (float)originalClippedSize.y;
|
ratio = (float)windowSize.y / (float)originalClippedSize.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
float scaledWidth = newWidth * ratio;
|
|
||||||
|
|
||||||
float scaledShiftLeftBy = shiftLeftBy * ratio;
|
float scaledShiftLeftBy = shiftLeftBy * ratio;
|
||||||
|
|
||||||
int scissorSizeX = originalClippedSize.x * ratio;
|
int scissorSizeX = originalClippedSize.x * ratio;
|
||||||
|
|
|
@ -102,7 +102,7 @@ protected:
|
||||||
bool _disablePreview{ true };
|
bool _disablePreview{ true };
|
||||||
private:
|
private:
|
||||||
ivec4 getViewportForSourceSize(const uvec2& size) const;
|
ivec4 getViewportForSourceSize(const uvec2& size) const;
|
||||||
float HmdDisplayPlugin::getLeftCenterPixel() const;
|
float getLeftCenterPixel() const;
|
||||||
|
|
||||||
bool _disablePreviewItemAdded { false };
|
bool _disablePreviewItemAdded { false };
|
||||||
bool _monoPreview { true };
|
bool _monoPreview { true };
|
||||||
|
|
Loading…
Reference in a new issue