aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src/PolyText8.cpp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-04-27 14:23:39 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-04-27 14:23:39 +0200
commit9b94209f53782ecaf7084722ce90836573ceb86b (patch)
tree42354553aeeb29d9490a3120f0c5cd687cbad370 /nxcomp/src/PolyText8.cpp
parent91d9218c0cc659f40918af6ac6c035c6c48d2c6d (diff)
parent16f6803f1597788b3bebcfa15e8900d8420b54a4 (diff)
downloadnx-libs-9b94209f53782ecaf7084722ce90836573ceb86b.tar.gz
nx-libs-9b94209f53782ecaf7084722ce90836573ceb86b.tar.bz2
nx-libs-9b94209f53782ecaf7084722ce90836573ceb86b.zip
Merge branch 'uli42-pr/various9' into 3.6.x
Attributes GH PR #1029: https://github.com/ArcticaProject/nx-libs/pull/1029
Diffstat (limited to 'nxcomp/src/PolyText8.cpp')
-rw-r--r--nxcomp/src/PolyText8.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/nxcomp/src/PolyText8.cpp b/nxcomp/src/PolyText8.cpp
index 61fef5a4f..b16601d21 100644
--- a/nxcomp/src/PolyText8.cpp
+++ b/nxcomp/src/PolyText8.cpp
@@ -57,7 +57,7 @@ int PolyText8Store::parseIdentity(Message *message, const unsigned char *buffer,
// Here is the fingerprint.
//
- polyText8 -> drawable = GetULONG(buffer + 4, bigEndian);
+ polyText8 -> drawable = GetULONG(buffer + 4, bigEndian);
polyText8 -> gcontext = GetULONG(buffer + 8, bigEndian);
polyText8 -> x = GetUINT(buffer + 12, bigEndian);
@@ -76,7 +76,7 @@ int PolyText8Store::parseIdentity(Message *message, const unsigned char *buffer,
#endif
if ((int) size > dataOffset)
- {
+ {
int length;
int current;
int delta;
@@ -90,7 +90,7 @@ int PolyText8Store::parseIdentity(Message *message, const unsigned char *buffer,
delta = 1;
nitem = 0;
- #ifdef DUMP
+ #ifdef DUMP
*logofs << name() << " Size " << size << ".\n" << logofs_flush;
#endif
@@ -109,38 +109,38 @@ int PolyText8Store::parseIdentity(Message *message, const unsigned char *buffer,
#endif
item = GetUINT(buffer + length , bigEndian);
-
+
if (item < 255)
{
//
// Text element. Number represents
// the 'Length of string' field.
//
-
+
length += (item + delta + 1);
nitem++;
- }
+ }
else if (item == 255)
{
//
// Element is a font shift.
//
-
+
length += 5;
nitem++;
}
- #ifdef DUMP
+ #ifdef DUMP
*logofs << name() << " Item " << item << ".\n" << logofs_flush;
#endif
current += length;
}
while(current < (int) size && item != 0);
-
-
+
+
#ifdef DUMP
*logofs << name() << " Final length " << length << ".\n" << logofs_flush;
#endif
@@ -194,9 +194,9 @@ void PolyText8Store::dumpIdentity(const Message *message) const
PolyText8Message *polyText8 = (PolyText8Message *) message;
- *logofs << name() << ": Identity drawable " << polyText8 -> drawable
- << ", gcontext " << polyText8 -> gcontext << ", x " << polyText8 -> x
- << ", y " << polyText8 -> y << ", size " << polyText8 -> size_
+ *logofs << name() << ": Identity drawable " << polyText8 -> drawable
+ << ", gcontext " << polyText8 -> gcontext << ", x " << polyText8 -> x
+ << ", y " << polyText8 -> y << ", size " << polyText8 -> size_
<< ".\n";
#endif