OpenTTD Source
20241108-master-g80f628063a
|
Implementation of the Windows (GDI) video driver. More...
#include "../stdafx.h"
#include "../openttd.h"
#include "../error_func.h"
#include "../gfx_func.h"
#include "../os/windows/win32.h"
#include "../blitter/factory.hpp"
#include "../core/geometry_func.hpp"
#include "../core/math_func.hpp"
#include "../core/random_func.hpp"
#include "../texteff.hpp"
#include "../thread.h"
#include "../progress.h"
#include "../window_gui.h"
#include "../window_func.h"
#include "../framerate_type.h"
#include "../library_loader.h"
#include "win32_v.h"
#include <windows.h>
#include <imm.h>
#include <versionhelpers.h>
#include "../safeguards.h"
Go to the source code of this file.
Data Structures | |
struct | Win32VkMapping |
Functions | |
static uint | MapWindowsKey (uint sym) |
static LRESULT | HandleCharMsg (uint keycode, char32_t charcode) |
Forward key presses to the window system. | |
static bool | DrawIMECompositionString () |
Should we draw the composition string ourself, i.e is this a normal IME? | |
static void | SetCompositionPos (HWND hwnd) |
Set position of the composition window to the caret position. | |
static void | SetCandidatePos (HWND hwnd) |
Set the position of the candidate window. | |
static LRESULT | HandleIMEComposition (HWND hwnd, WPARAM wParam, LPARAM lParam) |
Handle WM_IME_COMPOSITION messages. | |
static void | CancelIMEComposition (HWND hwnd) |
Clear the current composition string. | |
LRESULT CALLBACK | WndProcGdi (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
static void | RegisterWndClass () |
static void | FindResolutions (uint8_t bpp) |
static BOOL CALLBACK | MonitorEnumProc (HMONITOR hMonitor, HDC, LPRECT, LPARAM data) |
Variables | |
bool | _window_maximize |
static Dimension | _bck_resolution |
DWORD | _imm_props |
static Palette | _local_palette |
Current palette to use for drawing. | |
static const Win32VkMapping | _vk_mapping [] |
static const Dimension | default_resolutions [] |
static FVideoDriver_Win32GDI | iFVideoDriver_Win32GDI |
Implementation of the Windows (GDI) video driver.
Definition in file win32_v.cpp.
|
static |
Definition at line 782 of file win32_v.cpp.