Skip to content

Commit 416769f

Browse files
committed
github action test
1 parent 7fe350b commit 416769f

2 files changed

Lines changed: 32 additions & 3 deletions

File tree

.github/workflows/cmake-build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CMake Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Install CMake
20+
uses: lukka/get-cmake@v3
21+
22+
- name: Configure with CMake
23+
run: cmake -S . -B build -G "Visual Studio 16 2019"
24+
25+
- name: Build with MSVC
26+
run: cmake --build build --config Release

src/dlgabout.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ HWND ShowAboutDialog(HINSTANCE hInstance, HWND parent)
117117
hAboutWindow, (HMENU)1, NULL, NULL
118118
);
119119

120+
121+
// i just don't care with the bitmaps now.
122+
120123
// HBITMAP hBitmap1 = LoadBitmapA(hInstance, MAKEINTRESOURCE(HIWORD(ID_APP_BNR)));
121124
// HBITMAP hBitmap2 = LoadBitmapA(hInstance, MAKEINTRESOURCE(HIWORD(ID_APP_ICO_BIG)));
122125

@@ -126,10 +129,10 @@ HWND ShowAboutDialog(HINSTANCE hInstance, HWND parent)
126129
// if (hBitmap2 == NULL)
127130
// ShowLastError(L"Failed to load ID_APP_ICO_BIG bitmap");
128131

129-
HBITMAP hBitmap = (HBITMAP)LoadImageA(GetModuleHandle(NULL), MAKEINTRESOURCE(102), IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION);
132+
// HBITMAP hBitmap = (HBITMAP)LoadImageA(GetModuleHandle(NULL), MAKEINTRESOURCE(102), IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION);
130133

131-
if (hBitmap == NULL)
132-
ShowLastError(L"Failed to load ID_APP_ICO_BIG bitmap");
134+
// if (hBitmap == NULL)
135+
// ShowLastError(L"Failed to load ID_APP_ICO_BIG bitmap");
133136

134137
// SendMessage(hPicture1, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBitmap1);
135138
// SendMessage(hPicture2, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBitmap2);

0 commit comments

Comments
 (0)