[Scummvm-git-logs] scummvm master -> 7f02d47ad7859355cd667a6b37daaa0889c28b54

kelmer44 noreply at scummvm.org
Thu May 28 07:47:17 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
7f02d47ad7 PELROCK: Remove duplicate code in menu.cpp. PVS-Studio V760


Commit: 7f02d47ad7859355cd667a6b37daaa0889c28b54
    https://github.com/scummvm/scummvm/commit/7f02d47ad7859355cd667a6b37daaa0889c28b54
Author: kelmer (kelmer at gmail.com)
Date: 2026-05-28T09:47:08+02:00

Commit Message:
PELROCK: Remove duplicate code in menu.cpp. PVS-Studio V760

Changed paths:
    engines/pelrock/menu.cpp


diff --git a/engines/pelrock/menu.cpp b/engines/pelrock/menu.cpp
index 28765a514bb..537055817e9 100644
--- a/engines/pelrock/menu.cpp
+++ b/engines/pelrock/menu.cpp
@@ -668,7 +668,6 @@ void MenuManager::drawScreen() {
 }
 
 void MenuManager::drawInventoryIcons() {
-	bool debugIcons = false;
 	for (uint i = 0; i < 4; i++) {
 		uint itemIndex = _curInventoryPage * 4 + i;
 		if (g_engine->_state->inventoryItems.size() <= itemIndex)
@@ -676,10 +675,6 @@ void MenuManager::drawInventoryIcons() {
 		InventoryObject item = g_engine->_res->getIconForObject(g_engine->_state->inventoryItems[itemIndex]);
 		Common::Point slot = _inventorySlots[i];
 		drawSpriteToBuffer(_compositeBuffer, item.iconData, slot.x, slot.y, 60, 60, 1);
-		if (debugIcons) {
-			drawRect(&_compositeBuffer, slot.x, slot.y, 60, 60, 13);
-			drawText(_compositeBuffer, g_engine->_smallFont, Common::String::format("ID %d", g_engine->_state->inventoryItems[itemIndex]), slot.x + 2, slot.y + 2, 640, 13);
-		}
 	}
 }
 
@@ -968,9 +963,6 @@ void MenuManager::drawMainButtons() {
 	buf = button == LOAD_GAME_BUTTON ? _loadButtons[1] : _loadButtons[0];
 	drawSpriteToBuffer(_compositeBuffer, buf, _loadGameRect.left, _loadGameRect.top, _loadGameRect.width(), _loadGameRect.height(), kTransparentColor);
 
-	buf = button == LOAD_GAME_BUTTON ? _loadButtons[1] : _loadButtons[0];
-	drawSpriteToBuffer(_compositeBuffer, buf, _loadGameRect.left, _loadGameRect.top, _loadGameRect.width(), _loadGameRect.height(), kTransparentColor);
-
 	buf = button == SOUNDS_BUTTON ? _soundsButtons[1] : _soundsButtons[0];
 	drawSpriteToBuffer(_compositeBuffer, buf, _soundsRect.left, _soundsRect.top, _soundsRect.width(), _soundsRect.height(), kTransparentColor);
 




More information about the Scummvm-git-logs mailing list