mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Minor tweaks
This commit is contained in:
parent
923215c0da
commit
a1f15d9adc
@ -61,7 +61,7 @@ HRESULT STDMETHODCALLTYPE DWriteFontFileEnumerator::QueryInterface(IID const& ri
|
|||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE DWriteFontFileEnumerator::MoveNext(BOOL* hasCurrentFile)
|
HRESULT STDMETHODCALLTYPE DWriteFontFileEnumerator::MoveNext(BOOL* hasCurrentFile)
|
||||||
{
|
{
|
||||||
*hasCurrentFile = (++m_CurrentFontFileIndex < m_FontFiles.size());
|
*hasCurrentFile = (++m_CurrentFontFileIndex < (int)m_FontFiles.size());
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2078,13 +2078,11 @@ bool MeterWindow::ReadSkin()
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_Canvas = Gfx::Canvas::Create(useD2D ? Gfx::Renderer::PreferD2D : Gfx::Renderer::GDIP);
|
m_Canvas = Gfx::Canvas::Create(useD2D ? Gfx::Renderer::PreferD2D : Gfx::Renderer::GDIP);
|
||||||
|
m_Canvas->SetAccurateText(m_Parser.ReadBool(L"Rainmeter", L"AccurateText", false));
|
||||||
|
|
||||||
// Gotta have some kind of buffer during initialization
|
// Gotta have some kind of buffer during initialization
|
||||||
CreateDoubleBuffer(1, 1);
|
CreateDoubleBuffer(1, 1);
|
||||||
|
|
||||||
m_AccurateText = m_Parser.ReadBool(L"Rainmeter", L"AccurateText", false);
|
|
||||||
m_Canvas->SetAccurateText(m_AccurateText);
|
|
||||||
|
|
||||||
// Check the version
|
// Check the version
|
||||||
UINT appVersion = m_Parser.ReadUInt(L"Rainmeter", L"AppVersion", 0);
|
UINT appVersion = m_Parser.ReadUInt(L"Rainmeter", L"AppVersion", 0);
|
||||||
if (appVersion > RAINMETER_VERSION)
|
if (appVersion > RAINMETER_VERSION)
|
||||||
|
@ -324,7 +324,6 @@ private:
|
|||||||
void CreateDoubleBuffer(int cx, int cy);
|
void CreateDoubleBuffer(int cx, int cy);
|
||||||
|
|
||||||
Gfx::Canvas* m_Canvas;
|
Gfx::Canvas* m_Canvas;
|
||||||
bool m_AccurateText;
|
|
||||||
|
|
||||||
ConfigParser m_Parser;
|
ConfigParser m_Parser;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user