[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    [PATCH] karbon on IRIX with MIPSpro
From:       Andreas Sturm <a_sturm () naimasoft ! com>
Date:       2003-01-03 15:34:10
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I finally got karbon14 to compile on IRIX using MIPSpro. My fix for the first
problematic spot (vcanvas.cc) has been included already; thanks whoever did
it. I attached a patch for the secon compile error which occures in
karbon_view.cc. When i start karbon i got the following message in the
konsole:
xlib_rgb_init: compiled for little endian, but this is a big endian machine.
I did look where this might happen and i found a few spots where the endianes
matters: art_rgb.c in karbon/render und lib/kopainter. I also found the same
in libart_lgpl. I already checked in config.h whether #define WORDS_BIGENDIAN
1 is defined. i also did a recompile with --enable-debug=full but i did not
get a more detailed error message. Can anybody give any hint where i could
look any further?
Thanks!

Andy

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (IRIX64)

iD8DBQE+FiOWWZhxXlcCT4ERAjULAJ91vATZcBuwNpBpR/huTNEClTvWjQCggFDR
rma/1UFJb8iY2ZUql46WT6w=
=s3Ig
-----END PGP SIGNATURE-----

["karbon_irix_patch" (text/x-diff)]

--- karbon_view.cc.orig	Mon Dec  2 13:04:41 2002
+++ karbon_view.cc	Fri Jan  3 09:14:28 2003
@@ -275,9 +275,12 @@
 	// TODO : better use eps export?
 	// TODO : use real page layout stuff
 	QPtrListIterator<VLayer> i = m_part->document().layers();
-	for ( ; i.current(); ++i )
-		//if ( i.current()->visible() )
-			i.current()->draw( &p, &KoRect::fromQRect( QRect( 0, 0, width(), height() ) ) );
+	for ( ; i.current(); ++i ) {
+		//	i.current()->draw( &p, &KoRect::fromQRect( QRect( 0, 0, width(), height() ) ) );
+		QRect qrect( 0, 0, width(), height() );
+	 	KoRect korect = KoRect::fromQRect(qrect);
+	 	i.current()->draw( &p, &korect );
+}
 
 	p.end();
 }

____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
http://mail.kde.org/mailman/listinfo/koffice

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic