__resolutionHeight(0),
__physicalMMWidth(0),
__physicalMMHeight(0),
+ __refreshRate(0),
__outputMode(nullptr),
__dpmsMode(IDSDisplayDeviceOutput::DPMS_OFF),
__displayDeviceHWC(nullptr)
__resolutionHeight(0),
__physicalMMWidth(0),
__physicalMMHeight(0),
+ __refreshRate(0),
__outputMode(nullptr),
__dpmsMode(IDSDisplayDeviceOutput::DPMS_OFF),
__displayDeviceHWC(nullptr)
return __physicalMMHeight;
}
+int DSDisplayDeviceOutputTDMImpl::getRefreshRate()
+{
+ return __refreshRate;
+}
+
+std::string DSDisplayDeviceOutputTDMImpl::getName()
+{
+ return __name;
+}
+
bool DSDisplayDeviceOutputTDMImpl::setMode(std::shared_ptr<IDSDisplayDeviceOutputMode> outputMode)
{
tdm_error terror;
}
__outputMode = outputMode;
+ __resolutionWidth = __outputMode->getHorizontalSize();
+ __resolutionHeight = __outputMode->getVertialSize();
+ __refreshRate = __outputMode->getRefreshRate();
+ __name = __outputMode->getName();
return true;
}
int getResolutionHeight() override;
int getPhysicalMMWidth() override;
int getPhysicalMMHeight() override;
+ int getRefreshRate() override;
+ std::string getName() override;
std::list<std::shared_ptr<IDSDisplayDeviceOutputMode>> getAvailableModes() override;
bool setMode(std::shared_ptr<IDSDisplayDeviceOutputMode> outputMode) override;
std::list<std::shared_ptr<IDSDisplayDeviceOutputMode>> __availableModeList;
unsigned int __resolutionWidth, __resolutionHeight;
unsigned int __physicalMMWidth, __physicalMMHeight;
+ unsigned int __refreshRate;
+ std::string __name;
std::shared_ptr<IDSDisplayDeviceOutputMode> __outputMode;
IDSDisplayDeviceOutput::DPMSMode __dpmsMode;
virtual int getResolutionHeight() = 0;
virtual int getPhysicalMMWidth() = 0;
virtual int getPhysicalMMHeight() = 0;
+ virtual int getRefreshRate() = 0;
+ virtual std::string getName() = 0;
virtual std::list<std::shared_ptr<IDSDisplayDeviceOutputMode>> getAvailableModes() = 0;
virtual bool setMode(std::shared_ptr<IDSDisplayDeviceOutputMode> outputMode) = 0;