mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-30 03:26:12 -05:00
Use sizeof() instead of magic number
This commit is contained in:
parent
24c9f8b9ed
commit
4c387d6d49
1 changed files with 2 additions and 2 deletions
|
@ -240,8 +240,8 @@ void Score::Paint()
|
||||||
AmbulanceMissionState* lebp = (AmbulanceMissionState*) GameState()->GetState("AmbulanceMissionState");
|
AmbulanceMissionState* lebp = (AmbulanceMissionState*) GameState()->GetState("AmbulanceMissionState");
|
||||||
|
|
||||||
DDSURFACEDESC desc;
|
DDSURFACEDESC desc;
|
||||||
memset(&desc, 0, 0x6c);
|
memset(&desc, 0, sizeof(desc));
|
||||||
desc.dwSize = 0x6c;
|
desc.dwSize = sizeof(desc);
|
||||||
if (gd->m_surface->Lock(NULL, &desc, 0, NULL) == DD_OK) {
|
if (gd->m_surface->Lock(NULL, &desc, 0, NULL) == DD_OK) {
|
||||||
if (desc.lPitch != desc.dwWidth) {
|
if (desc.lPitch != desc.dwWidth) {
|
||||||
gd->m_surface->Unlock(desc.lpSurface);
|
gd->m_surface->Unlock(desc.lpSurface);
|
||||||
|
|
Loading…
Reference in a new issue