22 #ifndef SHERLOCK_SCREEN_H 23 #define SHERLOCK_SCREEN_H 25 #include "common/list.h" 26 #include "common/rect.h" 27 #include "sherlock/image_file.h" 28 #include "sherlock/surface.h" 29 #include "sherlock/resources.h" 30 #include "sherlock/saveload.h" 34 #define VGA_COLOR_TRANS(x) ((x) * 255 / 63) 35 #define BG_GREYSCALE_RANGE_END 229 42 uint32 _transitionSeed;
45 int _fadeBytesRead, _fadeBytesToRead;
52 Surface _backBuffer1, _backBuffer2;
54 byte _cMap[PALETTE_SIZE];
55 byte _sMap[PALETTE_SIZE];
56 byte _tMap[PALETTE_SIZE];
92 void fadeIn(
const byte palette[PALETTE_SIZE],
int speed = 2);
135 int16 *width, int16 *height);
142 int16 *width, int16 *height,
int scaleVal);
191 void initPaletteFade(
int bytesToRead);
Definition: surface.h:118
Common::Rect getDisplayBounds()
void void void restoreBackground(const Common::Rect &r)
void synchronize(Serializer &s)
Definition: animation.h:29
void print(const Common::Point &pt, uint color, MSVC_PRINTF const char *formatStr,...) GCC_PRINTF(4
void flushScaleImage(ImageFrame *frame, const Common::Point &pt, int16 *xp, int16 *yp, int16 *width, int16 *height, int scaleVal)
void activateBackBuffer1()
Definition: serializer.h:79
Definition: image_file.h:36
void fadeToBlack(int speed=2)
int FORCEINLINE GCC_PRINTF(2, 0) int vsprintf_s(T(&dst)[N]
void flushImage(ImageFrame *frame, const Common::Point &pt, int16 *xp, int16 *yp, int16 *width, int16 *height)
virtual uint16 width() const
Definition: surface.h:100
void slamArea(int16 xp, int16 yp, int16 width, int16 height)
void writeString(const Common::String &str, const Common::Point &pt, uint overrideColor)
Definition: sherlock.h:76
void vgaBar(const Common::Rect &r, int color)
static void translatePalette(byte palette[PALETTE_SIZE])
void slamRect(const Common::Rect &r)
int equalizePalette(const byte palette[PALETTE_SIZE])
virtual uint16 height() const
Definition: surface.h:105
void resetDisplayBounds()
void void gPrint(const Common::Point &pt, uint color, MSVC_PRINTF const char *formatStr,...) GCC_PRINTF(4
Surface * getBackBuffer()
Definition: screen.h:67
void setDisplayBounds(const Common::Rect &r)
void fadeIn(const byte palette[PALETTE_SIZE], int speed=2)
void verticalTransition()
void activateBackBuffer2()