mirror of https://github.com/ClassiCube/ClassiCube
Workflow notify for mac classic builds
This commit is contained in:
parent
1064271e15
commit
cba495bd88
|
|
@ -43,3 +43,10 @@ jobs:
|
|||
with:
|
||||
SOURCE_FILE: 'ClassiCube-ppc.dsk'
|
||||
DEST_NAME: 'ClassiCube-ppc.dsk'
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_success
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
||||
WORKFLOW_NAME: 'macclassic'
|
||||
|
|
@ -344,10 +344,11 @@ void Window_Free(void) { }
|
|||
|
||||
static ATOM DoRegisterClass(void) {
|
||||
ATOM atom;
|
||||
WNDCLASSEXW wc = { 0 };
|
||||
wc.cbSize = sizeof(WNDCLASSEXW);
|
||||
wc.style = CS_OWNDC; /* https://stackoverflow.com/questions/48663815/getdc-releasedc-cs-owndc-with-opengl-and-gdi */
|
||||
wc.hInstance = win_instance;
|
||||
cc_result res;
|
||||
WNDCLASSEXW wc = { 0 };
|
||||
wc.cbSize = sizeof(WNDCLASSEXW);
|
||||
wc.style = CS_OWNDC; /* https://stackoverflow.com/questions/48663815/getdc-releasedc-cs-owndc-with-opengl-and-gdi */
|
||||
wc.hInstance = win_instance;
|
||||
wc.lpfnWndProc = Window_Procedure;
|
||||
wc.lpszClassName = CC_WIN_CLASSNAME;
|
||||
|
||||
|
|
@ -359,7 +360,11 @@ static ATOM DoRegisterClass(void) {
|
|||
|
||||
if ((atom = RegisterClassExW(&wc))) return atom;
|
||||
/* Windows 9x does not support W API functions */
|
||||
return RegisterClassExA((const WNDCLASSEXA*)&wc);
|
||||
if ((atom = RegisterClassExA((const WNDCLASSEXA*)&wc))) return atom;
|
||||
|
||||
res = GetLastError();
|
||||
Logger_Abort2(res, "Failed to register window class");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static HWND CreateWindowHandle(ATOM atom, int width, int height) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue