mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-13 07:08:49 +00:00
add null gpu notice (#3768)
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common/types.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <imgui.h>
|
||||
|
||||
@@ -12,6 +14,7 @@
|
||||
|
||||
#define IMGUI_FONT_TEXT 0
|
||||
#define IMGUI_FONT_MONO 1
|
||||
#define IMGUI_FONT_TEXT_BIG 2
|
||||
|
||||
namespace ImGui {
|
||||
|
||||
|
||||
@@ -76,10 +76,15 @@ void Initialize(const ::Vulkan::Instance& instance, const Frontend::WindowSDL& w
|
||||
font_cfg.OversampleV = 1;
|
||||
io.FontDefault = io.Fonts->AddFontFromMemoryCompressedTTF(
|
||||
imgui_font_notosansjp_regular_compressed_data,
|
||||
imgui_font_notosansjp_regular_compressed_size, 16.0f, &font_cfg, ranges.Data);
|
||||
imgui_font_notosansjp_regular_compressed_size, 32.0f, &font_cfg, ranges.Data);
|
||||
io.Fonts->AddFontFromMemoryCompressedTTF(imgui_font_proggyvector_regular_compressed_data,
|
||||
imgui_font_proggyvector_regular_compressed_size,
|
||||
16.0f);
|
||||
32.0f);
|
||||
io.Fonts->AddFontFromMemoryCompressedTTF(imgui_font_notosansjp_regular_compressed_data,
|
||||
imgui_font_notosansjp_regular_compressed_size, 128.0f,
|
||||
&font_cfg, ranges.Data);
|
||||
|
||||
io.FontGlobalScale = 0.5f;
|
||||
|
||||
StyleColorsDark();
|
||||
|
||||
@@ -110,7 +115,7 @@ void Initialize(const ::Vulkan::Instance& instance, const Frontend::WindowSDL& w
|
||||
dock_id = ImHashStr(label);
|
||||
|
||||
if (const auto dpi = SDL_GetWindowDisplayScale(window.GetSDLWindow()); dpi > 0.0f) {
|
||||
GetIO().FontGlobalScale = dpi;
|
||||
GetIO().FontGlobalScale *= dpi;
|
||||
}
|
||||
|
||||
std::at_quick_exit([] { SaveIniSettingsToDisk(GetIO().IniFilename); });
|
||||
|
||||
Reference in New Issue
Block a user