From kde-kimageshop Wed Oct 08 18:51:36 2003 From: Boudewijn Rempt Date: Wed, 08 Oct 2003 18:51:36 +0000 To: kde-kimageshop Subject: Finishing a paint action. X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=106563968722921 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============82258566273079325==" --===============82258566273079325== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_7yFh/ugfuozhZQF"; charset="us-ascii" Content-Transfer-Encoding: 7bit --Boundary-02=_7yFh/ugfuozhZQF Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline Passing lightly over the issue of debug commands -- one thing at a time -- = is=20 this right way of painting? I mean, is it necessary to first 'anchor', then= =20 'invalidate', then 'updateCanvas' to have the change show up on screen? KisImageSP img =3D m_view -> currentImg(); if (img) { KisPaintDeviceSP device =3D img -> activeDevice(); if (device) { KisPainter *p =3D new KisPainter(); p->begin(device); p->fillRect( x, y, 10, 10, KoColor(QColor( "red" )) ); p->end(); device->anchor(); } } img -> invalidate(QRect( x, y, 10, 10 )); m_view -> updateCanvas(x, y, 10, 10); (By the way, in the funny bugs department, and just for the record: if I ru= n=20 krita remotely, on my AMD box, export the display to my Powerbook, then the= =20 image will show up as black, and I get xshm errors on the output. I hope to= =20 compile Krita on the powerbook some time soon to check for endianness, but = I=20 don't think this is an endiannes problem.) =2D-=20 Boudewijn Rempt | http://www.valdyas.org/index2.html --Boundary-02=_7yFh/ugfuozhZQF Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQA/hFy7daCcgCmN5d8RAlLFAKCe1Bynmq3WdW6bOsIV563rQTYMegCeLGxf WGS4eVU8302MRX0pFZXKhuo= =sek5 -----END PGP SIGNATURE----- --Boundary-02=_7yFh/ugfuozhZQF-- --===============82258566273079325== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kimageshop mailing list kimageshop@mail.kde.org http://mail.kde.org/mailman/listinfo/kimageshop --===============82258566273079325==--