[Scummvm-git-logs] scummvm master -> 0f7ff0dc991d523208d661aaa81db5a45cc03914
sev-
noreply at scummvm.org
Wed Nov 13 17:50:01 UTC 2024
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:
0f7ff0dc99 QDENGINE: Remove unused (and non-portable) methods from qdCamera
Commit: 0f7ff0dc991d523208d661aaa81db5a45cc03914
https://github.com/scummvm/scummvm/commit/0f7ff0dc991d523208d661aaa81db5a45cc03914
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-11-13T18:49:54+01:00
Commit Message:
QDENGINE: Remove unused (and non-portable) methods from qdCamera
Changed paths:
engines/qdengine/qdcore/qd_camera.cpp
engines/qdengine/qdcore/qd_camera.h
diff --git a/engines/qdengine/qdcore/qd_camera.cpp b/engines/qdengine/qdcore/qd_camera.cpp
index a8eebaca3d7..768f07650cd 100644
--- a/engines/qdengine/qdcore/qd_camera.cpp
+++ b/engines/qdengine/qdcore/qd_camera.cpp
@@ -878,26 +878,6 @@ void qdCamera::resize_grid(int sx, int sy) {
_GSY = sy;
}
-sGridCell *qdCamera::backup(sGridCell *ptrBuff) {
- memcpy(ptrBuff, _grid, sizeof(sGridCell) *_GSX * _GSY);
- return ptrBuff;
-}
-
-bool qdCamera::restore(sGridCell *grid, int sx, int sy, int csx, int csy) {
- if (_grid)
- delete [] _grid;
-
- _grid = new sGridCell[sx * sy];
- memcpy(_grid, grid, sizeof(sGridCell) * sx * sy);
-
- _GSX = sx;
- _GSY = sy;
- _cellSX = csx;
- _cellSY = csy;
-
- return true;
-}
-
bool qdCamera::set_grid_cell(const Vect2s &cell_pos, const sGridCell &cell) {
if (cell_pos.x >= 0 && cell_pos.x < _GSX && cell_pos.y >= 0 && cell_pos.y < _GSY) {
_grid[cell_pos.x + cell_pos.y * _GSX] = cell;
diff --git a/engines/qdengine/qdcore/qd_camera.h b/engines/qdengine/qdcore/qd_camera.h
index dc6904a109e..8d4901a9222 100644
--- a/engines/qdengine/qdcore/qd_camera.h
+++ b/engines/qdengine/qdcore/qd_camera.h
@@ -349,9 +349,6 @@ public:
bool draw_grid() const;
bool draw_cell(int x, int y, int z, int penWidth, uint32 color) const;
- sGridCell *backup(sGridCell *ptrBuff);
- bool restore(sGridCell *grid, int sx, int sy, int csx, int csy);
-
//! УÑÑановка ÑекÑÑего Ñежима камеÑÑ.
/**
ÐÑли обÑÐµÐºÑ Ð½Ñлевой, Ñо беÑеÑÑÑ Ð¾Ð±ÑÐµÐºÑ Ð¿Ð¾-ÑмолÑаниÑ.
More information about the Scummvm-git-logs
mailing list