[Scummvm-git-logs] scummvm master -> ba04f1e46604f18c708415038dfa04fe1b04360f
dreammaster
paulfgilbert at gmail.com
Wed Oct 21 01:51:51 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ba04f1e466 ACCESS: replaced magic numbers with contants
Commit: ba04f1e46604f18c708415038dfa04fe1b04360f
https://github.com/scummvm/scummvm/commit/ba04f1e46604f18c708415038dfa04fe1b04360f
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2020-10-20T18:51:47-07:00
Commit Message:
ACCESS: replaced magic numbers with contants
they are used later on already to fill the allocated memory
Changed paths:
engines/access/events.cpp
diff --git a/engines/access/events.cpp b/engines/access/events.cpp
index 114ae9dec6..ab5486d663 100644
--- a/engines/access/events.cpp
+++ b/engines/access/events.cpp
@@ -81,7 +81,7 @@ void EventsManager::setCursor(CursorType cursorId) {
// Create a surface to build up the cursor on
Graphics::Surface cursorSurface;
- cursorSurface.create(16, 16, Graphics::PixelFormat::createFormatCLUT8());
+ cursorSurface.create(CURSOR_WIDTH, CURSOR_HEIGHT, Graphics::PixelFormat::createFormatCLUT8());
byte *destP = (byte *)cursorSurface.getPixels();
Common::fill(destP, destP + CURSOR_WIDTH * CURSOR_HEIGHT, 0);
More information about the Scummvm-git-logs
mailing list