Skip to content

Commit c36296e

Browse files
committed
Renamed WindowTranslateImage to WindowTransformImage
1 parent c84915d commit c36296e

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

OtherTypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ class CMiniWindow
14111411

14121412
long MoveHotspot(LPCTSTR HotspotId, long Left, long Top, long Right, long Bottom);
14131413

1414-
long TranslateImage(LPCTSTR ImageId, float Left, float Top, short Mode, float Mxx, float Mxy, float Myx, float Myy);
1414+
long TransformImage(LPCTSTR ImageId, float Left, float Top, short Mode, float Mxx, float Mxy, float Myx, float Myy);
14151415

14161416
};
14171417

doc.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ BEGIN_DISPATCH_MAP(CMUSHclientDoc, CDocument)
604604
DISP_FUNCTION(CMUSHclientDoc, "WindowScrollwheelHandler", WindowScrollwheelHandler, VT_I4, VTS_BSTR VTS_BSTR VTS_BSTR)
605605
DISP_FUNCTION(CMUSHclientDoc, "WindowResize", WindowResize, VT_I4, VTS_BSTR VTS_I4 VTS_I4 VTS_I4)
606606
DISP_FUNCTION(CMUSHclientDoc, "WindowMoveHotspot", WindowMoveHotspot, VT_I4, VTS_BSTR VTS_BSTR VTS_I4 VTS_I4 VTS_I4 VTS_I4)
607-
DISP_FUNCTION(CMUSHclientDoc, "WindowTranslateImage", WindowTranslateImage, VT_I4, VTS_BSTR VTS_BSTR VTS_R4 VTS_R4 VTS_I2 VTS_R4 VTS_R4 VTS_R4 VTS_R4)
607+
DISP_FUNCTION(CMUSHclientDoc, "WindowTransformImage", WindowTransformImage, VT_I4, VTS_BSTR VTS_BSTR VTS_R4 VTS_R4 VTS_I2 VTS_R4 VTS_R4 VTS_R4 VTS_R4)
608608
DISP_PROPERTY_PARAM(CMUSHclientDoc, "NormalColour", GetNormalColour, SetNormalColour, VT_I4, VTS_I2)
609609
DISP_PROPERTY_PARAM(CMUSHclientDoc, "BoldColour", GetBoldColour, SetBoldColour, VT_I4, VTS_I2)
610610
DISP_PROPERTY_PARAM(CMUSHclientDoc, "CustomColourText", GetCustomColourText, SetCustomColourText, VT_I4, VTS_I2)
@@ -8250,4 +8250,3 @@ static bool bInPluginListChanged = false;
82508250

82518251
} // end CMUSHclientDoc::PluginListChanged
82528252

8253-

doc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2670,7 +2670,7 @@ class CMUSHclientDoc : public CDocument
26702670
afx_msg long WindowScrollwheelHandler(LPCTSTR Name, LPCTSTR HotspotId, LPCTSTR MoveCallback);
26712671
afx_msg long WindowResize(LPCTSTR Name, long Width, long Height, long BackgroundColour);
26722672
afx_msg long WindowMoveHotspot(LPCTSTR Name, LPCTSTR HotspotId, long Left, long Top, long Right, long Bottom);
2673-
afx_msg long WindowTranslateImage(LPCTSTR Name, LPCTSTR ImageId, float Left, float Top, short Mode, float Mxx, float Mxy, float Myx, float Myy);
2673+
afx_msg long WindowTransformImage(LPCTSTR Name, LPCTSTR ImageId, float Left, float Top, short Mode, float Mxx, float Mxy, float Myx, float Myy);
26742674
afx_msg long GetNormalColour(short WhichColour);
26752675
afx_msg void SetNormalColour(short WhichColour, long nNewValue);
26762676
afx_msg long GetBoldColour(short WhichColour);

miniwindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4210,7 +4210,7 @@ long CMiniWindow::MoveHotspot(LPCTSTR HotspotId,
42104210

42114211

42124212

4213-
long CMiniWindow::TranslateImage(LPCTSTR ImageId, float Left, float Top, short Mode, float Mxx, float Mxy, float Myx, float Myy)
4213+
long CMiniWindow::TransformImage(LPCTSTR ImageId, float Left, float Top, short Mode, float Mxx, float Mxy, float Myx, float Myy)
42144214
{
42154215

42164216
ImageMapIterator it = m_Images.find (ImageId);
@@ -4319,4 +4319,4 @@ long CMiniWindow::TranslateImage(LPCTSTR ImageId, float Left, float Top, short M
43194319
ModifyWorldTransform(dc.m_hDC, &xform, MWT_IDENTITY);
43204320

43214321
return eOK;
4322-
} // end of CMiniWindow::TranslateImage
4322+
} // end of CMiniWindow::TransformImage

mushclient.cnt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@
557557
3 WindowShow=FNC_WindowShow
558558
3 WindowText=FNC_WindowText
559559
3 WindowTextWidth=FNC_WindowTextWidth
560-
3 WindowTranslateImage=FNC_WindowTranslateImage
560+
3 WindowTransformImage=FNC_WindowTransformImage
561561
3 WindowWrite=FNC_WindowWrite
562562
3 WorldAddress=FNC_WorldAddress
563563
3 WorldName=FNC_WorldName

mushclient.odl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ library MUSHclient
433433
[id(399)] long WindowScrollwheelHandler(BSTR Name, BSTR HotspotId, BSTR MoveCallback);
434434
[id(400)] long WindowResize(BSTR Name, long Width, long Height, long BackgroundColour);
435435
[id(401)] long WindowMoveHotspot(BSTR Name, BSTR HotspotId, long Left, long Top, long Right, long Bottom);
436-
[id(402)] long WindowTranslateImage(BSTR Name, BSTR ImageId, float Left, float Top, short Mode, float Mxx, float Mxy, float Myx, float Myy);
436+
[id(402)] long WindowTransformImage(BSTR Name, BSTR ImageId, float Left, float Top, short Mode, float Mxx, float Mxy, float Myx, float Myy);
437437
//}}AFX_ODL_METHOD
438438

439439
};

scripting/functionlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ tInternalFunctionsTable InternalFunctionsTable [] = {
417417
{ "WindowShow" , "( WindowName , Show )" } ,
418418
{ "WindowText" , "( WindowName , FontId , Text , Left , Top , Right , Bottom , Colour , Unicode )" } ,
419419
{ "WindowTextWidth" , "( WindowName , FontId , Text , Unicode )" } ,
420-
{ "WindowTranslateImage" , "( WindowName , ImageId , Left , Top , Mode , Mxx , Mxy , Myx , Myy ) " },
420+
{ "WindowTransformImage" , "( WindowName , ImageId , Left , Top , Mode , Mxx , Mxy , Myx , Myy ) " },
421421
{ "WindowWrite" , "( WindowName , FileName )" } ,
422422
{ "WorldAddress" , "( )" } ,
423423
{ "WorldName" , "( )" } ,

scripting/lua_methods.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6316,12 +6316,12 @@ static int L_WindowTextWidth (lua_State *L)
63166316
} // end of WindowTextWidth
63176317

63186318
//----------------------------------------
6319-
// world.WindowTranslateImage
6319+
// world.WindowTransformImage
63206320
//----------------------------------------
6321-
static int L_WindowTranslateImage (lua_State *L)
6321+
static int L_WindowTransformImage (lua_State *L)
63226322
{
63236323
CMUSHclientDoc *pDoc = doc (L);
6324-
lua_pushnumber (L, pDoc->WindowTranslateImage (
6324+
lua_pushnumber (L, pDoc->WindowTransformImage (
63256325
my_checkstring (L, 1), // Name
63266326
my_checkstring (L, 2), // ImageId
63276327
my_checknumber (L, 3), // Left
@@ -6333,7 +6333,7 @@ static int L_WindowTranslateImage (lua_State *L)
63336333
my_checknumber (L, 9) // Myy
63346334
));
63356335
return 1; // number of result fields
6336-
} // end of L_WindowTranslateImage
6336+
} // end of L_WindowTransformImage
63376337

63386338
//----------------------------------------
63396339
// world.WindowWrite
@@ -6812,7 +6812,7 @@ static const struct luaL_reg worldlib [] =
68126812
{"WindowShow", L_WindowShow},
68136813
{"WindowText", L_WindowText},
68146814
{"WindowTextWidth", L_WindowTextWidth},
6815-
{"WindowTranslateImage", L_WindowTranslateImage},
6815+
{"WindowTransformImage", L_WindowTransformImage},
68166816
{"WindowWrite", L_WindowWrite},
68176817
{"WorldAddress", L_WorldAddress},
68186818
{"WorldName", L_WorldName},

scripting/methods.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14891,17 +14891,18 @@ long CMUSHclientDoc::WindowMoveHotspot(LPCTSTR Name, LPCTSTR HotspotId, long Lef
1489114891
} // end of CMUSHclientDoc::WindowMoveHotspot
1489214892

1489314893

14894-
long CMUSHclientDoc::WindowTranslateImage(LPCTSTR Name, LPCTSTR ImageId, float Left, float Top, short Mode, float Mxx, float Mxy, float Myx, float Myy)
14894+
long CMUSHclientDoc::WindowTransformImage(LPCTSTR Name, LPCTSTR ImageId, float Left, float Top, short Mode, float Mxx, float Mxy, float Myx, float Myy)
1489514895
{
1489614896
MiniWindowMapIterator it = m_MiniWindows.find (Name);
1489714897

1489814898
if (it == m_MiniWindows.end ())
1489914899
return eNoSuchWindow;
1490014900

14901-
return it->second->TranslateImage (ImageId, Left, Top, Mode, Mxx, Mxy, Myx, Myy);
14901+
return it->second->TransformImage (ImageId, Left, Top, Mode, Mxx, Mxy, Myx, Myy);
1490214902
}
1490314903

1490414904

14905+
1490514906
/*
1490614907
1490714908
======================================================================

0 commit comments

Comments
 (0)