DirectX9 display change (#1191)

* Fix issue #1190

* Correct output image with size decimation used

* Correct image format (BGR -> RGB)

* Another approach
This commit is contained in:
Paulchen Panther
2021-02-23 20:37:59 +01:00
committed by GitHub
parent 6ed9553ca3
commit 45bd23ca5c
3 changed files with 35 additions and 32 deletions

View File

@@ -54,6 +54,11 @@ public:
///
virtual void setCropping(unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom);
///
/// @brief Apply display index
///
void setDisplayIndex(int index) override;
private:
///
/// @brief Setup a new capture display, will free the previous one
@@ -68,6 +73,7 @@ private:
private:
int _pixelDecimation;
unsigned _display;
unsigned _displayWidth;
unsigned _displayHeight;
RECT* _srcRect;