コードスタイル

This commit is contained in:
Vaxry 2024-07-03 22:31:51 +02:00
parent 8a21583a8e
commit 9f28b37e2c
4 changed files with 9 additions and 9 deletions

View File

@ -30,7 +30,7 @@ CKeyboard::CKeyboard(SP<Aquamarine::IKeyboard> keeb) : keyboard(keeb) {
}); });
listeners.key = keeb->events.key.registerListener([this](std::any d) { listeners.key = keeb->events.key.registerListener([this](std::any d) {
auto E = std::any_cast<Aquamarine::IKeyboard::SKeyEvent>(d); auto E = std::any_cast<Aquamarine::IKeyboard::SKeyEvent>(d);
updateXkbStateWithKey(E.key + 8, E.pressed); updateXkbStateWithKey(E.key + 8, E.pressed);

View File

@ -224,7 +224,7 @@ CTabletTool::CTabletTool(SP<Aquamarine::ITabletTool> tool_) : tool(tool_) {
if (!tool) if (!tool)
return; return;
listeners.destroyTool = tool->events.destroy.registerListener([this] (std::any d) { listeners.destroyTool = tool->events.destroy.registerListener([this](std::any d) {
tool.reset(); tool.reset();
events.destroy.emit(); events.destroy.emit();
}); });

View File

@ -791,14 +791,14 @@ bool CMonitorState::test() {
} }
bool CMonitorState::updateSwapchain() { bool CMonitorState::updateSwapchain() {
auto options = m_pOwner->output->swapchain->currentOptions(); auto options = m_pOwner->output->swapchain->currentOptions();
const auto& STATE = m_pOwner->output->state->state(); const auto& STATE = m_pOwner->output->state->state();
const auto& MODE = STATE.mode ? STATE.mode : STATE.customMode; const auto& MODE = STATE.mode ? STATE.mode : STATE.customMode;
if (!MODE) if (!MODE)
return true; return true;
options.format = STATE.drmFormat; options.format = STATE.drmFormat;
options.scanout = true; options.scanout = true;
options.length = 2; options.length = 2;
options.size = MODE->pixelSize; options.size = MODE->pixelSize;
return m_pOwner->output->swapchain->reconfigure(options); return m_pOwner->output->swapchain->reconfigure(options);
} }

View File

@ -8,7 +8,7 @@
#include "EventLoopTimer.hpp" #include "EventLoopTimer.hpp"
namespace Aquamarine { namespace Aquamarine {
struct SPollFD; struct SPollFD;
}; };
class CEventLoopManager { class CEventLoopManager {