[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Review Request: Refactoring for KisPrescaledProjection
From: "Dmitry Kazakov" <dimula73 () gmail ! com>
Date: 2009-07-29 11:44:41
Message-ID: 20090729114441.24128.48878 () localhost
[Download RAW message or body]
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/1156/
-----------------------------------------------------------
Review request for KOffice.
Summary
-------
Makes prescaled projection code simplier and clearer. It also removes weird [1], \
simply unused [2] and previously unused code with bugs [3].
Most significant changes:
1) imageRectFromViewPortPixels and viewRectFromImagePixels now just convert rects' \
coords, without respect to canvas size (they still do respect image size). 2) They \
both made _private_ so this change won't brake anything outside 3) Broke the link \
from KisCanvas2 to KisPrescaledProjection::viewRectFromImagePixels. It was quite bad \
idea to use internal conversion function from outside. Reasons: a) they are internal
b) vRect can be changed (expanded) by prescaled projection during update (mipmap \
case) c) viewRectFromImagePixels was called twice: from KisCanvas2 first and then \
from KisPrescaledProjection::updateCanvasProjection again 4) now it's easier to \
maintain
[1] kis_pescaled_projection.cc:412-431
[2] kis_pescaled_projection.cc:396-403
[3] kis_pescaled_projection.cc:532
Diffs
-----
trunk/koffice/krita/ui/CMakeLists.txt 1000698
trunk/koffice/krita/ui/canvas/kis_canvas2.cpp 1000698
trunk/koffice/krita/ui/canvas/kis_prescaled_projection.h 1000698
trunk/koffice/krita/ui/canvas/kis_prescaled_projection.cpp 1000698
trunk/koffice/krita/ui/tests/kis_prescaled_projection_test.cpp 1000698
Diff: http://reviewboard.kde.org/r/1156/diff
Testing
-------
Thanks,
Dmitry
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic