mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Add UseD2D option to Rainmeter.ini (defaults to 0)
This commit is contained in:
@ -36,8 +36,8 @@
|
||||
#include "TintedImage.h"
|
||||
#include "MeasureScript.h"
|
||||
#include "../Version.h"
|
||||
#include "../Common/Gfx/CanvasGDIP.h"
|
||||
#include "../Common/Gfx/CanvasD2D.h"
|
||||
#include "../Common/Gfx/CanvasGDIP.h"
|
||||
|
||||
using namespace Gdiplus;
|
||||
|
||||
@ -143,7 +143,7 @@ CMeterWindow::CMeterWindow(const std::wstring& folderPath, const std::wstring& f
|
||||
m_FontCollection(),
|
||||
m_ToolTipHidden(false)
|
||||
{
|
||||
m_Canvas = Platform::IsAtLeastWinVista() ?
|
||||
m_Canvas = (Platform::IsAtLeastWinVista() && Rainmeter->CanUseD2D()) ?
|
||||
(Gfx::Canvas*)new Gfx::CanvasD2D() : (Gfx::Canvas*)new Gfx::CanvasGDIP();
|
||||
|
||||
if (!c_DwmInstance && Platform::IsAtLeastWinVista())
|
||||
|
Reference in New Issue
Block a user