mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
GRAPHICS: Change drawRect1 in primitives to fix corner pixel issues
This commit is contained in:
parent
6d60f91bc8
commit
8db0f22a22
@ -262,8 +262,8 @@ void drawRect(Common::Rect &rect, uint32 color, void (*plotProc)(int, int, int,
|
||||
* @brief Draws rectangle outline _with_ right and bottom edges
|
||||
*/
|
||||
void drawRect1(Common::Rect &rect, uint32 color, void (*plotProc)(int, int, int, void *), void *data) {
|
||||
drawHLine(rect.left, rect.right, rect.top, color, plotProc, data);
|
||||
drawHLine(rect.left, rect.right, rect.bottom, color, plotProc, data);
|
||||
drawHLine(rect.left + 1, rect.right - 1, rect.top, color, plotProc, data);
|
||||
drawHLine(rect.left + 1, rect.right - 1, rect.bottom, color, plotProc, data);
|
||||
drawVLine(rect.left, rect.top, rect.bottom, color, plotProc, data);
|
||||
drawVLine(rect.right, rect.top, rect.bottom, color, plotProc, data);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user