Skip to content

Commit

Permalink
Recognize Windows 8 and 8.1 in wxGetOsDescription().
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
  • Loading branch information
vslavik committed Nov 23, 2013
1 parent 458b528 commit f2bbf08
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/msw/utils.cpp
Expand Up @@ -1301,6 +1301,18 @@ wxString wxGetOsDescription()
? _("Windows Server 2008 R2")
: _("Windows 7");
break;

case 2:
str = wxIsWindowsServer() == 1
? _("Windows Server 2012")
: _("Windows 8");
break;

case 3:
str = wxIsWindowsServer() == 1
? _("Windows Server 2012 R2")
: _("Windows 8.1");
break;
}
break;
}
Expand Down

0 comments on commit f2bbf08

Please sign in to comment.