SWDEV-470698 - fix formatting, add format check workflow (#657)

このコミットが含まれているのは:
Danylo Lytovchenko
2025-08-20 16:28:06 +02:00
committed by GitHub
コミット f7338717ae
1574個のファイルの変更、162972行の追加、199346行の削除
+5 -8
ファイルの表示
@@ -54,8 +54,7 @@ void Window::OnPaint(void) {
bm.bmiHeader.biClrUsed = 0;
bm.bmiHeader.biClrImportant = 0;
int ret = SetDIBitsToDevice(hDC, 0, 0, _w, _h, 0, 0, 0, _h, _data, &bm,
DIB_RGB_COLORS);
int ret = SetDIBitsToDevice(hDC, 0, 0, _w, _h, 0, 0, 0, _h, _data, &bm, DIB_RGB_COLORS);
assert(ret);
}
@@ -64,8 +63,7 @@ void Window::OnPaint(void) {
/*****************************************************************************
*****************************************************************************/
LRESULT WINAPI Window::DefWindowProc(HWND hWnd, UINT uMsg, WPARAM wParam,
LPARAM lParam) {
LRESULT WINAPI Window::DefWindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
switch (uMsg) {
case WM_CHAR:
switch (wParam) {
@@ -81,8 +79,7 @@ LRESULT WINAPI Window::DefWindowProc(HWND hWnd, UINT uMsg, WPARAM wParam,
return ::DefWindowProc(hWnd, uMsg, wParam, lParam);
}
Window::Window(const char* title, int x, int y, int width, int height,
unsigned int uiStyle) {
Window::Window(const char* title, int x, int y, int width, int height, unsigned int uiStyle) {
_data = NULL;
_w = 0;
_h = 0;
@@ -109,8 +106,8 @@ Window::Window(const char* title, int x, int y, int width, int height,
RECT r = {x, y, x + width, y + height};
AdjustWindowRect(&r, uiStyle, 0);
_hWnd = CreateWindow("TST", title, uiStyle, r.left, r.top, r.right - r.left,
r.bottom - r.top, NULL, NULL, GetModuleHandle(0), this);
_hWnd = CreateWindow("TST", title, uiStyle, r.left, r.top, r.right - r.left, r.bottom - r.top,
NULL, NULL, GetModuleHandle(0), this);
if (_hWnd == NULL) {
MessageBox(NULL, "CreateWindow() failed.", "Error", MB_OK);
exit(0);