1 /* { dg-options "-O1 -floop-block -Wno-return-type" } */
3 typedef unsigned char byte;
4 typedef unsigned int uint;
5 typedef unsigned char uint8;
9 template<class In, class Out>
10 Out copy(In first, In last, Out dst) {
19 Array<T>& operator=(const Array<T> &array) {
20 copy(array._storage, array._storage + _size, _storage);
26 inline PixelFormat() {
28 inline PixelFormat(byte BytesPerPixel,
29 byte RBits, byte GBits, byte BBits, byte ABits,
30 byte RShift, byte GShift, byte BShift, byte AShift) {
35 static const Graphics::PixelFormat kLowPalFormat(2, 3, 3, 3, 0, 8, 4, 0, 0);
41 Palette(const Graphics::PixelFormat format = Graphics::PixelFormat(), const uint numColors = 0);
44 Common::Array<Color> _colors;
46 class FWRenderer : public Common::NonCopyable {
47 Cine::Palette _activePal;
50 void FWRenderer::drawCommand() {
51 if (!_activePal.isValid() || _activePal.empty()) {
52 _activePal = Cine::Palette(kLowPalFormat, 16);