src/java.desktop/windows/native/common/awt/systemscale/systemScale.h
author aivanov
Wed, 30 Oct 2019 14:08:07 +0000
changeset 58859 3fc5905f2bec
parent 48373 f9152f462cbc
permissions -rw-r--r--
8232724: Remove indirection with calling JNU_NewStringPlatform Reviewed-by: dholmes, clanger
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36907
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
     1
/*
48373
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
     2
 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
     4
 *
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    10
 *
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    15
 * accompanied this code).
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    16
 *
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    20
 *
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    23
 * questions.
f9152f462cbc 8193758: Update copyright headers of files in src tree that are missing Classpath exception
alanb
parents: 47216
diff changeset
    24
 */
36907
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
    25
#ifndef _AWT_SYSTEM_SCALE_H
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
    26
#define _AWT_SYSTEM_SCALE_H
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
    27
#include <windows.h>
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
    28
#ifdef __cplusplus
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
    29
extern "C" {
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
    30
#endif
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
    31
    void GetScreenDpi(HMONITOR mon, float *dpiX, float *dpiY);
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
    32
    HMONITOR WINAPI getPrimaryMonitor();
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
    33
#ifdef __cplusplus
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
    34
}
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
    35
#endif
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents:
diff changeset
    36
#endif