コードスタイル

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) {
auto E = std::any_cast<Aquamarine::IKeyboard::SKeyEvent>(d);
auto E = std::any_cast<Aquamarine::IKeyboard::SKeyEvent>(d);
updateXkbStateWithKey(E.key + 8, E.pressed);

View File

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

View File

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

View File

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