mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
fix warnings and cmake windows build
This commit is contained in:
+1
-1
@@ -191,7 +191,7 @@ public:
|
||||
bool Touch(const TouchInput &input) override;
|
||||
void Update() override;
|
||||
bool IsDown() const override; // For visual purpose
|
||||
bool IsDownForFadeoutCheck() const {
|
||||
bool IsDownForFadeoutCheck() const override {
|
||||
return !(pspButtonBit_ & (1ULL << 38)); // VIRTKEY_TOGGLE_TOUCH_CONTROLS from g_customKeyList
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#include <set>
|
||||
|
||||
constexpr wchar_t *szClassName = L"CtrlDisAsmView";
|
||||
constexpr const wchar_t *szClassName = L"CtrlDisAsmView";
|
||||
|
||||
static constexpr UINT_PTR IDT_REDRAW = 0xC0DE0001;
|
||||
static constexpr UINT REDRAW_DELAY = 1000 / 60;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
enum { REGISTER_PC = 32, REGISTER_HI, REGISTER_LO, REGISTERS_END };
|
||||
|
||||
constexpr wchar_t *szClassName = L"CtrlRegisterList";
|
||||
constexpr const wchar_t *szClassName = L"CtrlRegisterList";
|
||||
|
||||
static constexpr UINT_PTR IDT_REDRAW = 0xC0DE0001;
|
||||
static constexpr UINT REDRAW_DELAY = 1000 / 60;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "GPU/Debugger/Breakpoints.h"
|
||||
#include "GPU/GPUState.h"
|
||||
|
||||
constexpr wchar_t *szWindowClass = L"CtrlDisplayListView";
|
||||
constexpr const wchar_t *szWindowClass = L"CtrlDisplayListView";
|
||||
|
||||
void CtrlDisplayListView::registerClass()
|
||||
{
|
||||
|
||||
@@ -437,7 +437,7 @@ void CGEDebugger::DescribeSecondPreview(const GPUgstate &state, char desc[256])
|
||||
}
|
||||
|
||||
void CGEDebugger::PreviewExport(const GPUDebugBuffer *dbgBuffer) {
|
||||
constexpr wchar_t *filter = L"PNG Image (*.png)\0*.png\0JPEG Image (*.jpg)\0*.jpg\0All files\0*.*\0\0";
|
||||
constexpr const wchar_t *filter = L"PNG Image (*.png)\0*.png\0JPEG Image (*.jpg)\0*.jpg\0All files\0*.*\0\0";
|
||||
std::string fn;
|
||||
if (W32Util::BrowseForFileName(false, GetDlgHandle(), L"Save Preview Image...", nullptr, filter, L"png", fn)) {
|
||||
ScreenshotFormat fmt = fn.find(".jpg") != fn.npos ? ScreenshotFormat::JPG : ScreenshotFormat::PNG;
|
||||
|
||||
@@ -178,7 +178,7 @@ namespace MainWindow {
|
||||
|
||||
static bool trapMouse = true; // Handles some special cases(alt+tab, win menu) when game is running and mouse is confined
|
||||
|
||||
static constexpr wchar_t *szWindowClass = L"PPSSPPWnd";
|
||||
static constexpr const wchar_t *szWindowClass = L"PPSSPPWnd";
|
||||
|
||||
static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ void TouchInputHandler::handleTouchEvent(HWND hWnd, UINT message, WPARAM wParam,
|
||||
// disable the press and hold gesture for the given window
|
||||
void TouchInputHandler::disablePressAndHold(HWND hWnd) {
|
||||
// The atom identifier and Tablet PC atom
|
||||
wchar_t *tabletAtom = L"MicrosoftTabletPenServiceProperty";
|
||||
const wchar_t *tabletAtom = L"MicrosoftTabletPenServiceProperty";
|
||||
ATOM atomID = GlobalAddAtom(tabletAtom);
|
||||
|
||||
// If getting the ID failed, return false
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
#include <cstdint>
|
||||
|
||||
class Path;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user