Mercurial > otakunoraifu
diff scn2k/scn2k_grp.h @ 71:1fd20d231376
Fix objScale with 2D zoom; implement objWidth and objHeight.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 01 Apr 2011 23:49:12 +0200 |
parents | e16e13d8cd68 |
children | f8751d74918b |
line wrap: on
line diff
--- a/scn2k/scn2k_grp.h +++ b/scn2k/scn2k_grp.h @@ -76,7 +76,7 @@ struct GrpObj { int dig_number, dig_digit; // zoom / rotate 関係 - int zoom; // 256 で 1 倍 + int zoomx, zoomy; // 256 で 1 倍 int rotate; // 0-360度 vector<Rect> src_pos; @@ -99,7 +99,7 @@ struct GrpObj { void SetAlpha(void); void SetAlpha(int alpha); void SetSurfaceNum(int num = -1); - void SetZoomRotate(int zoom=-1, int rotate=-1); + void SetZoomRotate(int zoomx=-1, int zoomy=-1, int rotate=-1); void SetClipArea(int x, int y, int width, int height); void GetSrcGeom(int& width, int& height); void SetUpdate(void); @@ -200,6 +200,8 @@ class Grp : public CommandHandler { void impl_objNumOpts(Cmd &cmd); void impl_objPattNo(Cmd &cmd); void impl_objScale(Cmd &cmd); + void impl_objWidth(Cmd &cmd); + void impl_objHeight(Cmd &cmd); void impl_objRotate(Cmd &cmd); void impl_objPosDims(Cmd &cmd); void impl_refresh(Cmd &cmd);