mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Use dpi ref in rect and line drawing functions
This commit is contained in:
committed by
duncanspumpkin
parent
2941f6f7a5
commit
bb83a80eab
@@ -161,13 +161,13 @@ public:
|
||||
if (colours[0] & COLOUR_FLAG_TRANSLUCENT)
|
||||
{
|
||||
TranslucentWindowPalette palette = TranslucentWindowPalettes[BASE_COLOUR(colours[0])];
|
||||
GfxFilterRect(&dpi, { leftTop, rightBottom }, palette.highlight);
|
||||
GfxFilterRect(&dpi, { leftTop + shadowOffset, rightBottom + shadowOffset }, palette.shadow);
|
||||
GfxFilterRect(dpi, { leftTop, rightBottom }, palette.highlight);
|
||||
GfxFilterRect(dpi, { leftTop + shadowOffset, rightBottom + shadowOffset }, palette.shadow);
|
||||
}
|
||||
else
|
||||
{
|
||||
GfxFillRect(&dpi, { leftTop, rightBottom }, ColourMapA[colours[0]].mid_dark);
|
||||
GfxFillRect(&dpi, { leftTop + shadowOffset, rightBottom + shadowOffset }, ColourMapA[colours[0]].lightest);
|
||||
GfxFillRect(dpi, { leftTop, rightBottom }, ColourMapA[colours[0]].mid_dark);
|
||||
GfxFillRect(dpi, { leftTop + shadowOffset, rightBottom + shadowOffset }, ColourMapA[colours[0]].lightest);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -176,7 +176,7 @@ public:
|
||||
{
|
||||
// Darken the cell's background slightly when highlighted
|
||||
const ScreenCoordsXY rightBottom = screenCoords + ScreenCoordsXY{ ItemWidth - 1, ItemHeight - 1 };
|
||||
GfxFilterRect(&dpi, { screenCoords, rightBottom }, FilterPaletteID::PaletteDarken3);
|
||||
GfxFilterRect(dpi, { screenCoords, rightBottom }, FilterPaletteID::PaletteDarken3);
|
||||
}
|
||||
|
||||
StringId item = gDropdownItems[i].Format;
|
||||
|
||||
Reference in New Issue
Block a user