Bezier bounds rectangles are calculated correctly
authorSam Moore <[email protected]>
Thu, 14 Aug 2014 04:21:31 +0000 (12:21 +0800)
committerSam Moore <[email protected]>
Thu, 14 Aug 2014 04:21:31 +0000 (12:21 +0800)
commit53579b1a949fa3e4e193f8dfba2064edbb123f57
treef7bb39aed30ab9f9172f5f860805c40063bd359a
parentc1b5126edfd81846a0ecf19c6dcb9c0476df2196
Bezier bounds rectangles are calculated correctly

CPU rendering and SVG parsing uses absolute coordinates.
GPU rendering uses relative coordinates (relative to the bounding box).

The Objects struct stores the absolute bounding boxes now.

Previously it was just using {0,0,1,1} (and thus the GPU's relative coordinates were
equivelant to the CPU's absolute coordinates).

I might have fixed some other things but I can't remember.
src/bezier.cpp
src/bezier.h
src/document.cpp
src/document.h
src/ipdf.h
src/main.cpp
src/objectrenderer.cpp
src/objectrenderer.h
src/real.h
src/svg-tests/circlepath.svg [new file with mode: 0644]
src/view.cpp

UCC git Repository :: git.ucc.asn.au