mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
replace qt_rectfill_template<T> with its body in QT_RECTFILL() macro
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
c1fc868a83
commit
6068071768
1 changed files with 3 additions and 11 deletions
|
@ -5178,22 +5178,14 @@ static void qt_alphargbblit_quint32(QRasterBuffer *rasterBuffer,
|
|||
}
|
||||
}
|
||||
|
||||
template <class T>
|
||||
inline void qt_rectfill_template(QRasterBuffer *rasterBuffer,
|
||||
int x, int y, int width, int height,
|
||||
quint32 color)
|
||||
{
|
||||
qt_rectfill<T>(reinterpret_cast<T*>(rasterBuffer->buffer()),
|
||||
qt_colorConvert<T, quint32p>(quint32p::fromRawData(color), 0),
|
||||
x, y, width, height, rasterBuffer->bytesPerLine());
|
||||
}
|
||||
|
||||
#define QT_RECTFILL(T) \
|
||||
inline static void qt_rectfill_##T(QRasterBuffer *rasterBuffer, \
|
||||
int x, int y, int width, int height, \
|
||||
quint32 color) \
|
||||
{ \
|
||||
qt_rectfill_template<T>(rasterBuffer, x, y, width, height, color); \
|
||||
qt_rectfill<T>(reinterpret_cast<T*>(rasterBuffer->buffer()), \
|
||||
qt_colorConvert<T, quint32p>(quint32p::fromRawData(color), 0), \
|
||||
x, y, width, height, rasterBuffer->bytesPerLine()); \
|
||||
}
|
||||
|
||||
QT_RECTFILL(quint32)
|
||||
|
|
Loading…
Add table
Reference in a new issue