mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-10-03 01:23:41 -04:00
Use sizeof() instead of magic number
This commit is contained in:
parent
24c9f8b9ed
commit
4c387d6d49
@ -240,8 +240,8 @@ void Score::Paint()
|
||||
AmbulanceMissionState* lebp = (AmbulanceMissionState*) GameState()->GetState("AmbulanceMissionState");
|
||||
|
||||
DDSURFACEDESC desc;
|
||||
memset(&desc, 0, 0x6c);
|
||||
desc.dwSize = 0x6c;
|
||||
memset(&desc, 0, sizeof(desc));
|
||||
desc.dwSize = sizeof(desc);
|
||||
if (gd->m_surface->Lock(NULL, &desc, 0, NULL) == DD_OK) {
|
||||
if (desc.lPitch != desc.dwWidth) {
|
||||
gd->m_surface->Unlock(desc.lpSurface);
|
||||
|
Loading…
x
Reference in New Issue
Block a user