Skip to content

Commit 9bb2c72

Browse files
committed
isCurved is missing in the file
1 parent 344628f commit 9bb2c72

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/GDTFManager.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,6 +2979,7 @@ void GdtfGeometryDisplay::OnPrintToFile(IXMLFileNodePtr pNode)
29792979
pNode->SetNodeAttributeValue( XML_GDTF_DisplayAspectRatio, GdtfConverter::ConvertDouble(fAspectRatio) );
29802980
pNode->SetNodeAttributeValue( XML_GDTF_DisplayWidth, GdtfConverter::ConvertInteger(fWidth) );
29812981
pNode->SetNodeAttributeValue( XML_GDTF_DisplayHeight, GdtfConverter::ConvertInteger( fHeight ) );
2982+
pNode->SetNodeAttributeValue( XML_GDTF_DisplayIsCurved, fIsCurved ? "true" : "false" );
29822983
}
29832984

29842985
void GdtfGeometryDisplay::OnReadFromNode(const IXMLFileNodePtr& pNode)
@@ -2987,16 +2988,18 @@ void GdtfGeometryDisplay::OnReadFromNode(const IXMLFileNodePtr& pNode)
29872988
// Call the parent
29882989
GdtfGeometry::OnReadFromNode(pNode);
29892990

2990-
TXString width, height, aspectRatio = "";
2991+
TXString width, height, aspectRatio, isCurved = "";
29912992

29922993
pNode->GetNodeAttributeValue( XML_GDTF_DisplayTexture, fTexture);
29932994
pNode->GetNodeAttributeValue( XML_GDTF_DisplayAspectRatio, aspectRatio );
29942995
pNode->GetNodeAttributeValue( XML_GDTF_DisplayWidth, width );
29952996
pNode->GetNodeAttributeValue( XML_GDTF_DisplayHeight, height );
2997+
pNode->GetNodeAttributeValue( XML_GDTF_DisplayIsCurved, isCurved );
29962998

2997-
GdtfConverter::ConvertInteger( width, pNode, fWidth );
2998-
GdtfConverter::ConvertInteger( height, pNode, fHeight );
2999-
GdtfConverter::ConvertDouble( aspectRatio, pNode, fAspectRatio );
2999+
GdtfConverter::ConvertInteger( width, pNode, fWidth );
3000+
GdtfConverter::ConvertInteger( height, pNode, fHeight );
3001+
GdtfConverter::ConvertDouble( aspectRatio, pNode, fAspectRatio );
3002+
GdtfConverter::ConvertBool( isCurved, pNode, fIsCurved );
30003003
}
30013004

30023005
void GdtfGeometryDisplay::OnErrorCheck(const IXMLFileNodePtr& pNode)

src/Prefix/CommonPrefix.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ const Sint32 kGDTF_CurrentMinorVersion = 2;
455455
#define XML_GDTF_DisplayAspectRatio "AspectRatio"
456456
#define XML_GDTF_DisplayWidth "Width"
457457
#define XML_GDTF_DisplayHeight "Height"
458+
#define XML_GDTF_DisplayIsCurved "IsCurved"
458459

459460
#define XML_GDTF_LaserProtocolNodeName "Protocol"
460461
#define XML_GDTF_LaserProtocolName "Name"

0 commit comments

Comments
 (0)