blob: 5b459c860ea77768f8f46cc15478991642c75b6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/metrics/display_utils.h"
#include <windows.h>
// static
void DisplayUtils::GetPrimaryDisplayDimensions(int* width, int* height) {
if (width)
*width = GetSystemMetrics(SM_CXSCREEN);
if (height)
*height = GetSystemMetrics(SM_CYSCREEN);
}
// static
int DisplayUtils::GetDisplayCount() {
return GetSystemMetrics(SM_CMONITORS);
}
|