22 #ifndef GRAPHICS_SCALER_ASPECT_H 23 #define GRAPHICS_SCALER_ASPECT_H 25 #include "common/scummsys.h" 26 #include "graphics/scaler.h" 31 FORCEINLINE
int real2Aspect(
int y) {
32 return y + (y + 1) / 5;
38 FORCEINLINE
int aspect2Real(
int y) {
39 return (y * 5 + 4) / 6;
45 void makeRectStretchable(
int &x,
int &y,
int &w,
int &h,
bool interpolate);
51 int stretch200To240(uint8 *buf,
61 int stretch200To240Nearest(uint8 *buf, uint32 pitch,
int width,
int height,
int srcX,
int srcY,
int origSrcY,
const Graphics::PixelFormat &format);