SWDEV-470698 - fix formatting, add format check workflow (#657)
このコミットが含まれているのは:
+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);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする