mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
Quickfix for bug 3808
Don't set SystemMetrics to -1, when there's no CurInfo. Apparently we initialize the metrics before we have a WindowStation. This code needs to be improved... See issue #3808 for more details. svn path=/trunk/; revision=36913
This commit is contained in:
parent
922bd47d8d
commit
688a20a68b
1 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ InitMetrics(VOID)
|
||||||
gpsi->SystemMetrics[SM_CYVSCROLL] = 16;
|
gpsi->SystemMetrics[SM_CYVSCROLL] = 16;
|
||||||
gpsi->SystemMetrics[SM_CXHSCROLL] = 16;
|
gpsi->SystemMetrics[SM_CXHSCROLL] = 16;
|
||||||
gpsi->SystemMetrics[SM_DEBUG] = 0;
|
gpsi->SystemMetrics[SM_DEBUG] = 0;
|
||||||
gpsi->SystemMetrics[SM_SWAPBUTTON] = CurInfo ? CurInfo->SwapButtons : 0xFFFFFFFF;
|
gpsi->SystemMetrics[SM_SWAPBUTTON] = CurInfo ? CurInfo->SwapButtons : 0;
|
||||||
gpsi->SystemMetrics[SM_RESERVED1] = 0;
|
gpsi->SystemMetrics[SM_RESERVED1] = 0;
|
||||||
gpsi->SystemMetrics[SM_RESERVED2] = 0;
|
gpsi->SystemMetrics[SM_RESERVED2] = 0;
|
||||||
gpsi->SystemMetrics[SM_RESERVED3] = 0;
|
gpsi->SystemMetrics[SM_RESERVED3] = 0;
|
||||||
|
@ -98,8 +98,8 @@ InitMetrics(VOID)
|
||||||
gpsi->SystemMetrics[SM_CYFRAME] = 4;
|
gpsi->SystemMetrics[SM_CYFRAME] = 4;
|
||||||
gpsi->SystemMetrics[SM_CXMINTRACK] = 112;
|
gpsi->SystemMetrics[SM_CXMINTRACK] = 112;
|
||||||
gpsi->SystemMetrics[SM_CYMINTRACK] = 27;
|
gpsi->SystemMetrics[SM_CYMINTRACK] = 27;
|
||||||
gpsi->SystemMetrics[SM_CXDOUBLECLK] = CurInfo ? CurInfo->DblClickWidth : 0xFFFFFFFF;
|
gpsi->SystemMetrics[SM_CXDOUBLECLK] = CurInfo ? CurInfo->DblClickWidth : 4;
|
||||||
gpsi->SystemMetrics[SM_CYDOUBLECLK] = CurInfo ? CurInfo->DblClickWidth : 0xFFFFFFFF;
|
gpsi->SystemMetrics[SM_CYDOUBLECLK] = CurInfo ? CurInfo->DblClickWidth : 4;
|
||||||
gpsi->SystemMetrics[SM_CXICONSPACING] = 64;
|
gpsi->SystemMetrics[SM_CXICONSPACING] = 64;
|
||||||
gpsi->SystemMetrics[SM_CYICONSPACING] = 64;
|
gpsi->SystemMetrics[SM_CYICONSPACING] = 64;
|
||||||
gpsi->SystemMetrics[SM_MENUDROPALIGNMENT] = 0;
|
gpsi->SystemMetrics[SM_MENUDROPALIGNMENT] = 0;
|
||||||
|
|
Loading…
Reference in a new issue