Include renderer version into the platform tag in graphics context tests.
This allows to distinguish the results of the same renderer (e.g. GDI+-based one) on the different OS versions (because GDI+ produces different results under XP and Windows 8). Closes #16260. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -198,7 +198,17 @@ wxString GraphicsContextDrawingTestCase::GetTestsReferenceDirectory() const
|
||||
|
||||
wxString GraphicsContextDrawingTestCase::GetPlatformTag() const
|
||||
{
|
||||
return wxPlatformInfo::Get().GetOperatingSystemFamilyName().Lower();
|
||||
// We consider that the platform tag is the kind of default renderer plus
|
||||
// its major/minor versions.
|
||||
// The reason why including major/minor version is important, is that the
|
||||
// rendering engine typically evolves somewhat between two version
|
||||
// (i.e. font rendering is not the same in Windows XP and Windows 8)
|
||||
int major, minor;
|
||||
const wxGraphicsRenderer *defaultRenderer = wxGraphicsRenderer::GetDefaultRenderer();
|
||||
wxString rendererName = defaultRenderer->GetName();
|
||||
defaultRenderer->GetVersion (&major, &minor);
|
||||
|
||||
return wxString::Format("%s-%d.%d", rendererName, major, minor);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user