See if this fixes NT 3.5

This commit is contained in:
UnknownShadow200 2024-09-25 20:06:23 +10:00
parent cba495bd88
commit 9d5783c203
3 changed files with 8 additions and 2 deletions

View File

@ -26,7 +26,7 @@ static void Animations_Update(int loc, struct Bitmap* bmp, int stride);
#ifndef CC_BUILD_WEB
/* Based off the incredible work from https://dl.dropboxusercontent.com/u/12694594/lava.txt
mirrored at https://github.com/UnknownShadow200/ClassiCube/wiki/Minecraft-Classic-lava-animation-algorithm
mirrored at https://github.com/ClassiCube/ClassiCube/wiki/Minecraft-Classic-lava-animation-algorithm
Water animation originally written by cybertoon, big thanks!
*/
/*########################################################################################################################*

View File

@ -118,7 +118,7 @@ static void OnProjectionChanged(void* obj) {
https://dl.dropboxusercontent.com/s/pdq79gkzntquld1/slowBreakRotate2.gif
https://dl.dropboxusercontent.com/s/w1ego7cy7e5nrk1/slowBreakFull.gif
https://github.com/UnknownShadow200/ClassicalSharp/wiki/Dig-animation-details
https://github.com/ClassiCube/ClassicalSharp/wiki/Dig-animation-details
*/
static void HeldBlockRenderer_DigAnimation(void) {
float sinHalfCircle, sinHalfCircleWeird;

View File

@ -362,7 +362,13 @@ static ATOM DoRegisterClass(void) {
/* Windows 9x does not support W API functions */
if ((atom = RegisterClassExA((const WNDCLASSEXA*)&wc))) return atom;
/* Windows NT 3.5 does not support RegisterClassExA function */
res = GetLastError();
if (res == ERROR_CALL_NOT_IMPLEMENTED) {
if ((atom = RegisterClassA((const WNDCLASSA*)&wc))) return atom;
res = GetLastError();
}
Logger_Abort2(res, "Failed to register window class");
return NULL;
}