mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-11 04:06:12 +00:00
ZVISION: Rename _warpedBuffer to _workingWindowBuffer
To better represent its function
This commit is contained in:
parent
695257cb79
commit
760dd3e632
@ -50,7 +50,7 @@ RenderManager::RenderManager(OSystem *system, const Common::Rect workingWindow,
|
||||
_accumulatedVelocityMilliseconds(0),
|
||||
_renderTable(_workingWidth, _workingHeight) {
|
||||
|
||||
_warpedBuffer = new uint16[_workingWidth *_workingHeight];
|
||||
_workingWindowBuffer = new uint16[_workingWidth *_workingHeight];
|
||||
}
|
||||
|
||||
RenderManager::~RenderManager() {
|
||||
@ -58,7 +58,7 @@ RenderManager::~RenderManager() {
|
||||
delete _currentBackground;
|
||||
}
|
||||
|
||||
delete[] _warpedBuffer;
|
||||
delete[] _workingWindowBuffer;
|
||||
}
|
||||
|
||||
void RenderManager::update(uint deltaTimeInMillis) {
|
||||
@ -133,9 +133,9 @@ void RenderManager::renderSubRectToScreen(Graphics::Surface &surface, int16 dest
|
||||
if (_renderTable.getRenderState() == RenderTable::FLAT) {
|
||||
_system->copyRectToScreen(surface.getBasePtr(subRect.left, subRect.top), surface.pitch, destinationX + _workingWindow.left, destinationY + _workingWindow.top, subRect.width(), subRect.height());
|
||||
} else {
|
||||
_renderTable.mutateImage((uint16 *)surface.getBasePtr(0, 0), _warpedBuffer, surface.w, surface.h, destinationX, destinationY, subRect, wrap, isTransposed);
|
||||
_renderTable.mutateImage((uint16 *)surface.getBasePtr(0, 0), _workingWindowBuffer, surface.w, surface.h, destinationX, destinationY, subRect, wrap, isTransposed);
|
||||
|
||||
_system->copyRectToScreen(_warpedBuffer, _workingWidth * sizeof(uint16), destinationX + _workingWindow.left, destinationY + _workingWindow.top, subRect.width(), subRect.height());
|
||||
_system->copyRectToScreen(_workingWindowBuffer, _workingWidth * sizeof(uint16), destinationX + _workingWindow.left, destinationY + _workingWindow.top, subRect.width(), subRect.height());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,9 @@ private:
|
||||
OSystem *_system;
|
||||
const Graphics::PixelFormat _pixelFormat;
|
||||
|
||||
uint16 *_warpedBuffer;
|
||||
// A buffer the exact same size as the workingWindow
|
||||
// It's used for panorama/tilt warping and for clearing the workingWindow to a single color
|
||||
uint16 *_workingWindowBuffer;
|
||||
|
||||
/** Width of the working window. Saved to prevent extraneous calls to _workingWindow.width() */
|
||||
const int _workingWidth;
|
||||
@ -88,6 +90,7 @@ private:
|
||||
/** Holds any 'leftover' milliseconds between frames */
|
||||
uint _accumulatedVelocityMilliseconds;
|
||||
|
||||
// TODO: Potentially merge this buffer and _workingWindowBuffer
|
||||
byte *_scaledVideoFrameBuffer;
|
||||
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user