fix function names
This commit is contained in:
parent
a4a452a7f2
commit
1402054259
4 changed files with 8 additions and 3 deletions
|
@ -48,6 +48,7 @@ int WindowPosX;
|
|||
int WindowPosY;
|
||||
char SettingsIniPath[MAX_PATH];
|
||||
|
||||
//BOOL WINAPI DllMainCRTStartup(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
|
||||
BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
|
||||
{
|
||||
switch (dwReason)
|
||||
|
@ -983,7 +984,7 @@ HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnk
|
|||
char cwd[MAX_PATH];
|
||||
char tmp[256];
|
||||
GetCurrentDirectoryA(sizeof(cwd), cwd);
|
||||
snprintf(SettingsIniPath, sizeof(SettingsIniPath), "%s\\ddraw.ini", cwd);
|
||||
_snprintf(SettingsIniPath, sizeof(SettingsIniPath), "%s\\ddraw.ini", cwd);
|
||||
|
||||
if(GetFileAttributes(SettingsIniPath) == 0xFFFFFFFF)
|
||||
{
|
||||
|
|
|
@ -63,7 +63,7 @@ DWORD WINAPI render_soft_main(void)
|
|||
if (!ddraw->windowed)
|
||||
PostMessage(ddraw->hWnd, WM_AUTORENDERER, 0, 0);
|
||||
|
||||
snprintf(
|
||||
_snprintf(
|
||||
warningText, sizeof(warningText),
|
||||
"-WARNING- Using slow software rendering, please update your graphics card driver (%s)",
|
||||
strlen(OpenglVersion) > 10 ? "" : OpenglVersion);
|
||||
|
|
|
@ -55,7 +55,7 @@ BOOL screenshot(struct IDirectDrawSurfaceImpl *src)
|
|||
}
|
||||
|
||||
strftime(str_time, 64, "%Y-%m-%d-%H_%M_%S", localtime(&t));
|
||||
snprintf(filename, 128, "%s-%s.png", title, str_time);
|
||||
_snprintf(filename, 128, "%s-%s.png", title, str_time);
|
||||
|
||||
if(!src || !src->palette)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue