mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-04 07:24:15 +01:00
54ed8f0bb0
Co-authored-by: Philip Rebohle <philip.rebohle@tu-dortmund.de> Co-authored-by: Robin Kertels <robin.kertels@gmail.com> Co-authored-by: pchome <pchome@users.noreply.github.com> Co-authored-by: Christopher Egert <cme3000@gmail.com> Co-authored-by: Derek Lesho <dereklesho52@Gmail.com> Co-authored-by: Luis Cáceres <lacaceres97@gmail.com> Co-authored-by: Nelson Chen <crazysim@gmail.com> Co-authored-by: Edmondo Tommasina <edmondo.tommasina@gmail.com> Co-authored-by: Riesi <riesi@opentrash.com> Co-authored-by: gbMichelle <gbmichelle.dev@gmail.com>
33 lines
716 B
C++
33 lines
716 B
C++
#pragma once
|
|
|
|
#include "d3d9_include.h"
|
|
|
|
namespace dxvk {
|
|
|
|
constexpr uint32_t HardwareCursorWidth = 32u;
|
|
constexpr uint32_t HardwareCursorHeight = 32u;
|
|
constexpr uint32_t HardwareCursorFormatSize = 4u;
|
|
constexpr uint32_t HardwareCursorPitch = HardwareCursorWidth * HardwareCursorFormatSize;
|
|
|
|
// Format Size of 4 bytes (ARGB)
|
|
using CursorBitmap = uint8_t[HardwareCursorHeight * HardwareCursorPitch];
|
|
|
|
class D3D9Cursor {
|
|
|
|
public:
|
|
|
|
void UpdateCursor(int X, int Y);
|
|
|
|
BOOL ShowCursor(BOOL bShow);
|
|
|
|
HRESULT SetHardwareCursor(UINT XHotSpot, UINT YHotSpot, const CursorBitmap& bitmap);
|
|
|
|
private:
|
|
|
|
BOOL m_visible = FALSE;
|
|
|
|
HCURSOR m_hCursor = nullptr;
|
|
|
|
};
|
|
|
|
} |