summaryrefslogtreecommitdiff
path: root/editeng/source/items
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-11-05 12:31:51 +0000
committerMichael Weghorn <m.weghorn@posteo.de>2024-11-06 14:06:27 +0100
commita43b5e3de41856407dbad337dac8e96d7e966429 (patch)
treeae7fbc79a0c8c0e529908670844f0b4c90ea0046 /editeng/source/items
parent92f5913aef0668f1de5a20631128c84ad932fd99 (diff)
win: Prefer integers instead of strings for OS version comparison
* Add a WinOSVersionInfo struct holding the major and minor version and build number for a Windows release. * Extract a static WinSalInstance::getWinOSVersionInfo from WinSalInstance::getOSVersion that returns a corresponding version info. * Adjust the local getOSVersionString helper to take integers for major and minor version instead of an "NT version" string that is a dot-separated version number containing both of these. * Use WinSalInstance::getWinOSVersionInfo in ImplDrawNativeControl to compare the major version + build number to identify Windows 11 instead of relying on WinSalInstance::getOSVersion to return a string starting with "Windows 11". Change-Id: I6fe727c1c0f928c03216e406cdb1b7735c1ab3ad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176059 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'editeng/source/items')
0 files changed, 0 insertions, 0 deletions