Minor tweaks

This commit is contained in:
Birunthan Mohanathas 2013-08-02 14:46:42 +03:00
parent 923215c0da
commit a1f15d9adc
3 changed files with 2 additions and 5 deletions

View File

@ -61,7 +61,7 @@ HRESULT STDMETHODCALLTYPE DWriteFontFileEnumerator::QueryInterface(IID const& ri
HRESULT STDMETHODCALLTYPE DWriteFontFileEnumerator::MoveNext(BOOL* hasCurrentFile)
{
*hasCurrentFile = (++m_CurrentFontFileIndex < m_FontFiles.size());
*hasCurrentFile = (++m_CurrentFontFileIndex < (int)m_FontFiles.size());
return S_OK;
}

View File

@ -2078,13 +2078,11 @@ bool MeterWindow::ReadSkin()
}
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
CreateDoubleBuffer(1, 1);
m_AccurateText = m_Parser.ReadBool(L"Rainmeter", L"AccurateText", false);
m_Canvas->SetAccurateText(m_AccurateText);
// Check the version
UINT appVersion = m_Parser.ReadUInt(L"Rainmeter", L"AppVersion", 0);
if (appVersion > RAINMETER_VERSION)

View File

@ -324,7 +324,6 @@ private:
void CreateDoubleBuffer(int cx, int cy);
Gfx::Canvas* m_Canvas;
bool m_AccurateText;
ConfigParser m_Parser;