Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Mark Arrasmith <arrasmith@math.twsu.edu>
To: axp-list@redhat.com
Subject: Fixing kde2_beta4 for alpha
Date: Thu, 7 Sep 2000 14:38:15 -0500	[thread overview]
Message-ID: <00090714523300.02857@chaos.math.twsu.edu> (raw)

Well I figured I could just stay quiet and not let anybody know about my lack
of C++ skills, but . . .

Anyone want to try and fix a memcpy line from netwm.cpp in kde2 beta4?  Taking
Thomas Leitner's patched netwm.cpp and moving the changes to the beta4 version
left one new memcpy that is killing kwin.

I don't know C++ enough to fix it, so I'm hopeing someone here can.  Anyway the
relevent section from NETWinInfo::setIcon is . . . 

<code snip>

// do a deep copy, we want to own the data
NETIcon& ni = p->icons[ p->icon_count - 1 ];
// CARD32 *d = new CARD32[ ni.size.width * ni.size.height ];
long *d = new long[ni.size.width * ni.size.height];
ni.data = (unsigned char *) d;

#ifdef __alpha
    /* put your fix here :) */
#else
    (void) memcpy( ni.data, icon.data, ni.size.width * ni.size.height * sizeof(long) );
#endif

</code snip>

You can pickup the netwm.cpp I'm working on from:
ftp://chaos.math.twsu.edu/pub/netwm.cpp

- mark arrasmith




                 reply	other threads:[~2000-09-07 19:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox