[Scummvm-git-logs] scummvm master -> dbaa9439da3b4b90031a875ebb50e56cab451997
digitall
noreply at scummvm.org
Sat May 7 19:42:17 UTC 2022
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:
dbaa9439da AGS: Remove Various Unused Variables Causing Compiler Warnings
Commit: dbaa9439da3b4b90031a875ebb50e56cab451997
https://github.com/scummvm/scummvm/commit/dbaa9439da3b4b90031a875ebb50e56cab451997
Author: D G Turner (digitall at scummvm.org)
Date: 2022-05-07T20:41:45+01:00
Commit Message:
AGS: Remove Various Unused Variables Causing Compiler Warnings
Changed paths:
engines/ags/engine/ac/draw.cpp
engines/ags/shared/font/ttf_font_renderer.cpp
engines/ags/shared/gui/gui_listbox.cpp
diff --git a/engines/ags/engine/ac/draw.cpp b/engines/ags/engine/ac/draw.cpp
index 941efeeb68c..59c2a2c257d 100644
--- a/engines/ags/engine/ac/draw.cpp
+++ b/engines/ags/engine/ac/draw.cpp
@@ -1872,7 +1872,6 @@ void draw_gui_and_overlays() {
clear_sprite_list();
- const bool is_software_mode = !_G(gfxDriver)->HasAcceleratedTransform();
// Add active overlays to the sprite list
for (size_t i = 0; i < _GP(screenover).size(); ++i) {
auto &over = _GP(screenover)[i];
diff --git a/engines/ags/shared/font/ttf_font_renderer.cpp b/engines/ags/shared/font/ttf_font_renderer.cpp
index f953735da90..a2ca87c5042 100644
--- a/engines/ags/shared/font/ttf_font_renderer.cpp
+++ b/engines/ags/shared/font/ttf_font_renderer.cpp
@@ -33,10 +33,6 @@ namespace AGS3 {
using namespace AGS::Shared;
-// project-specific implementation
-extern bool ShouldAntiAliasText();
-
-
// ***** TTF RENDERER *****
void TTFFontRenderer::AdjustYCoordinateForFont(int *ycoord, int /*fontNumber*/) {
// TTF fonts already have space at the top, so try to remove the gap
diff --git a/engines/ags/shared/gui/gui_listbox.cpp b/engines/ags/shared/gui/gui_listbox.cpp
index 783afe5bb57..636478ece8e 100644
--- a/engines/ags/shared/gui/gui_listbox.cpp
+++ b/engines/ags/shared/gui/gui_listbox.cpp
@@ -91,7 +91,6 @@ Rect GUIListBox::CalcGraphicRect(bool clipped) {
Rect rc = RectWH(0, 0, Width, Height);
UpdateMetrics();
const int width = Width - 1;
- const int height = Height - 1;
const int pixel_size = get_fixed_pixel_size(1);
int right_hand_edge = width - pixel_size - 1;
// calculate the scroll bar's width if necessary
More information about the Scummvm-git-logs
mailing list