mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 11:36:22 +00:00
WINTERMUTE: Mark drawLine as unused with dirty-rects.
This commit is contained in:
parent
d322592037
commit
c6df5f9994
@ -84,8 +84,9 @@ public:
|
||||
* @param rect the portion of the screen to fade (if NULL, the entire screen will be faded).
|
||||
*/
|
||||
virtual void fadeToColor(byte r, byte g, byte b, byte a, Common::Rect *rect = NULL) = 0;
|
||||
virtual bool drawLine(int x1, int y1, int x2, int y2, uint32 color);
|
||||
virtual bool drawRect(int x1, int y1, int x2, int y2, uint32 color, int width = 1);
|
||||
|
||||
virtual bool drawLine(int x1, int y1, int x2, int y2, uint32 color); // Unused outside indicator-display
|
||||
virtual bool drawRect(int x1, int y1, int x2, int y2, uint32 color, int width = 1); // Unused outside indicator-display
|
||||
BaseRenderer(BaseGame *inGame = NULL);
|
||||
virtual ~BaseRenderer();
|
||||
virtual bool setProjection() {
|
||||
|
@ -482,10 +482,10 @@ void BaseRenderOSystem::drawFromSurface(RenderTicket *ticket, Common::Rect *dstR
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
bool BaseRenderOSystem::drawLine(int x1, int y1, int x2, int y2, uint32 color) {
|
||||
static bool hasWarned = false; // TODO: Fix this, this only avoids spamming warnings for now.
|
||||
if (!_disableDirtyRects && !hasWarned) {
|
||||
warning("BaseRenderOSystem::DrawLine - doesn't work for dirty rects yet");
|
||||
hasWarned = true;
|
||||
// This function isn't used outside of indicator-displaying, and thus quite unused in
|
||||
// BaseRenderOSystem when dirty-rects are enabled.
|
||||
if (!_disableDirtyRects && !_indicatorDisplay) {
|
||||
error("BaseRenderOSystem::DrawLine - doesn't work for dirty rects yet");
|
||||
}
|
||||
|
||||
byte r = RGBCOLGetR(color);
|
||||
|
Loading…
x
Reference in New Issue
Block a user