mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
ENGINES: Remove Graphics::PixelFormat alias from engine.cpp
Almost the entire file does not use the aliased PixelFormat except for a single function, so just make that function work like everything else already in the TU.
This commit is contained in:
parent
9a82bc6d96
commit
24f5d45619
@ -353,9 +353,6 @@ void initGraphics(int width, int height, const Graphics::PixelFormat *format) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
using Graphics::PixelFormat;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines the first matching format between two lists.
|
* Determines the first matching format between two lists.
|
||||||
*
|
*
|
||||||
@ -364,16 +361,16 @@ using Graphics::PixelFormat;
|
|||||||
* @return The first item on the backend list that also occurs on the frontend list
|
* @return The first item on the backend list that also occurs on the frontend list
|
||||||
* or PixelFormat::createFormatCLUT8() if no matching formats were found.
|
* or PixelFormat::createFormatCLUT8() if no matching formats were found.
|
||||||
*/
|
*/
|
||||||
inline PixelFormat findCompatibleFormat(Common::List<PixelFormat> backend, Common::List<PixelFormat> frontend) {
|
inline Graphics::PixelFormat findCompatibleFormat(const Common::List<Graphics::PixelFormat> &backend, const Common::List<Graphics::PixelFormat> &frontend) {
|
||||||
#ifdef USE_RGB_COLOR
|
#ifdef USE_RGB_COLOR
|
||||||
for (Common::List<PixelFormat>::iterator i = backend.begin(); i != backend.end(); ++i) {
|
for (Common::List<Graphics::PixelFormat>::const_iterator i = backend.begin(); i != backend.end(); ++i) {
|
||||||
for (Common::List<PixelFormat>::iterator j = frontend.begin(); j != frontend.end(); ++j) {
|
for (Common::List<Graphics::PixelFormat>::const_iterator j = frontend.begin(); j != frontend.end(); ++j) {
|
||||||
if (*i == *j)
|
if (*i == *j)
|
||||||
return *i;
|
return *i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return PixelFormat::createFormatCLUT8();
|
return Graphics::PixelFormat::createFormatCLUT8();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user