Skip to content

Commit

Permalink
styles: format all code
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Nov 11, 2024
1 parent 698e3cb commit f2b1005
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions include/MaaFramework/MaaDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ enum MaaCtrlOptionEnum
/// value: int, eg: 720; val_size: sizeof(int)
MaaCtrlOption_ScreenshotTargetShortSide = 2,

/// Screenshot use raw size without scaling.
/// Screenshot use raw size without scaling.
/// Please note that this option may cause incorrect coordinates on user devices with different resolutions if scaling is not performed.
///
///
/// value: bool, eg: true; val_size: sizeof(bool)
MaaCtrlOption_ScreenshotUseRawSize = 3,

Expand Down
1 change: 0 additions & 1 deletion source/MaaUtils/GpuOption/GpuOptionMacOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ std::optional<int> perfer_gpu()
MAA_NS_END

#endif // __APPLE__

6 changes: 3 additions & 3 deletions source/MaaWin32ControlUnit/Input/SeizeInput.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "SeizeInput.h"

#include "Utils/Codec.h"
#include "Utils/Logger.h"
#include "Utils/MicroControl.hpp"
#include "Utils/Platform.h"
#include "Utils/SafeWindows.hpp"
#include "Utils/Codec.h"

MAA_CTRL_UNIT_NS_BEGIN

Expand Down Expand Up @@ -224,14 +224,14 @@ bool SeizeInput::input_text(const std::string& text)
input_vec.emplace_back(input);

input.ki.dwFlags |= KEYEVENTF_KEYUP;

input_vec.emplace_back(input);
}

UINT written = SendInput(static_cast<UINT>(input_vec.size()), input_vec.data(), sizeof(INPUT));

if (written != input_vec.size()) {
LogError << VAR(written) << VAR(input_vec.size()) << VAR(u16_text.size()) ;
LogError << VAR(written) << VAR(input_vec.size()) << VAR(u16_text.size());
return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion source/MaaWin32ControlUnit/Input/SendMessageInput.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "SendMessageInput.h"

#include "Utils/Codec.h"
#include "Utils/Logger.h"
#include "Utils/MicroControl.hpp"
#include "Utils/Platform.h"
#include "Utils/SafeWindows.hpp"
#include "Utils/Codec.h"

MAA_CTRL_UNIT_NS_BEGIN

Expand Down

0 comments on commit f2b1005

Please sign in to comment.