[Scummvm-git-logs] scummvm master -> 23588fe93fa73b7b74f6d8ac4e1798739a4b3bd5
Strangerke
noreply at scummvm.org
Mon May 27 21:49:51 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:
23588fe93f BAGEL: Remove an unused funtion in CBagStorageDevBmp
Commit: 23588fe93fa73b7b74f6d8ac4e1798739a4b3bd5
https://github.com/scummvm/scummvm/commit/23588fe93fa73b7b74f6d8ac4e1798739a4b3bd5
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2024-05-27T22:49:45+01:00
Commit Message:
BAGEL: Remove an unused funtion in CBagStorageDevBmp
Changed paths:
engines/bagel/baglib/storage_dev_bmp.cpp
engines/bagel/baglib/storage_dev_bmp.h
diff --git a/engines/bagel/baglib/storage_dev_bmp.cpp b/engines/bagel/baglib/storage_dev_bmp.cpp
index f368917705a..12c9b2f1c6a 100644
--- a/engines/bagel/baglib/storage_dev_bmp.cpp
+++ b/engines/bagel/baglib/storage_dev_bmp.cpp
@@ -98,19 +98,6 @@ ErrorCode CBagStorageDevBmp::loadFileFromStream(CBagIfstream &fpInput, const CBo
return CBagStorageDev::loadFileFromStream(fpInput, sWldName, bAttach);
}
-CBofPoint CBagStorageDevBmp::getScaledPt(CBofPoint xPoint) {
- CBofRect rDestRect = getRect();
-
- CBofPoint pt;
- pt.x = _cSrcRect.width() * xPoint.x / rDestRect.width();
- pt.y = _cSrcRect.height() * xPoint.y / rDestRect.height();
-
- pt.x += _cSrcRect.left;
- pt.y += _cSrcRect.top;
-
- return pt;
-}
-
void CBagStorageDevBmp::onLButtonDown(uint32 nFlags, CBofPoint *xPoint, void *info) {
CBagStorageDev::onLButtonDown(nFlags, xPoint, info);
}
diff --git a/engines/bagel/baglib/storage_dev_bmp.h b/engines/bagel/baglib/storage_dev_bmp.h
index 643b857868d..cb6b186ac91 100644
--- a/engines/bagel/baglib/storage_dev_bmp.h
+++ b/engines/bagel/baglib/storage_dev_bmp.h
@@ -66,11 +66,6 @@ public:
_bTrans = bTrans;
}
- /**
- * Return a scaled point from the screen to the bitmap
- */
- CBofPoint getScaledPt(CBofPoint xPoint);
-
ErrorCode setBackground(CBofBitmap *pBmp) override;
CBofBitmap *getBackground() override {
return getBitmap();
More information about the Scummvm-git-logs
mailing list