From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 29A7D2F1D2 for ; Thu, 7 Sep 2000 15:47:08 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id PAA16062 for axp-list@listman.redhat.com; Thu, 7 Sep 2000 15:47:08 -0400 Received: from riemann.math.twsu.edu (root@riemann.math.twsu.edu [156.26.12.62]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA16057 for ; Thu, 7 Sep 2000 15:47:05 -0400 Received: from chaos.math.twsu.edu (chaos.math.twsu.edu [156.26.12.253]) by riemann.math.twsu.edu (8.9.3/8.9.3) with SMTP id OAA20727 for ; Thu, 7 Sep 2000 14:38:41 -0500 From: Mark Arrasmith To: axp-list@redhat.com Subject: Fixing kde2_beta4 for alpha Date: Thu, 7 Sep 2000 14:38:15 -0500 X-Mailer: KMail [version 1.0.29.2] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00090714523300.02857@chaos.math.twsu.edu> Content-Transfer-Encoding: 8bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors 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 . . . // 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 You can pickup the netwm.cpp I'm working on from: ftp://chaos.math.twsu.edu/pub/netwm.cpp - mark arrasmith