Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Fixing kde2_beta4 for alpha
@ 2000-09-07 19:38 Mark Arrasmith
  0 siblings, 0 replies; only message in thread
From: Mark Arrasmith @ 2000-09-07 19:38 UTC (permalink / raw)
  To: axp-list

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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-09-07 19:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-07 19:38 Fixing kde2_beta4 for alpha Mark Arrasmith

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