- everything compiles again.
As a bonus this already fixes several bugs caused by the botched texture scaling implementation the original texture manager came with. System cursors are currently disabled because they rely on functionality that needs to be moved to different classes.
This commit is contained in:
parent
6eab4a882c
commit
a4d61e6fb1
41 changed files with 268 additions and 197 deletions
|
|
@ -1399,7 +1399,7 @@ DEFINE_ACTION_FUNCTION(_TexMan, GetName)
|
|||
|
||||
if (tex != nullptr)
|
||||
{
|
||||
if (tex->Name.IsNotEmpty()) retval = tex->Name;
|
||||
if (tex->GetName().IsNotEmpty()) retval = tex->GetName();
|
||||
else
|
||||
{
|
||||
// Textures for full path names do not have their own name, they merely link to the source lump.
|
||||
|
|
@ -1423,8 +1423,8 @@ static int GetTextureSize(int texid, int *py)
|
|||
int x, y;
|
||||
if (tex != nullptr)
|
||||
{
|
||||
x = tex->GetWidth();
|
||||
y = tex->GetHeight();
|
||||
x = tex->GetDisplayWidth();
|
||||
y = tex->GetDisplayHeight();
|
||||
}
|
||||
else x = y = -1;
|
||||
if (py) *py = y;
|
||||
|
|
@ -1453,8 +1453,8 @@ static void GetScaledSize(int texid, DVector2 *pvec)
|
|||
double x, y;
|
||||
if (tex != nullptr)
|
||||
{
|
||||
x = tex->GetScaledWidthDouble();
|
||||
y = tex->GetScaledHeightDouble();
|
||||
x = tex->GetDisplayWidthDouble();
|
||||
y = tex->GetDisplayHeightDouble();
|
||||
}
|
||||
else x = y = -1;
|
||||
if (pvec)
|
||||
|
|
@ -1484,8 +1484,8 @@ static void GetScaledOffset(int texid, DVector2 *pvec)
|
|||
double x, y;
|
||||
if (tex != nullptr)
|
||||
{
|
||||
x = tex->GetScaledLeftOffsetDouble(0);
|
||||
y = tex->GetScaledTopOffsetDouble(0);
|
||||
x = tex->GetDisplayLeftOffsetDouble();
|
||||
y = tex->GetDisplayTopOffsetDouble();
|
||||
}
|
||||
else x = y = -1;
|
||||
if (pvec)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue