summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2014-04-15Avoid complex static global initialisationTor Lillqvist
Caused an assertion failure: "sal/osl/unx/process_impl.cxx:167: sal_uInt32 osl_getCommandArgCount(): Assertion `g_command_args.m_nCount != 0' failed". Change-Id: Ib01e0312e328f751c9353aab95dceb977b818b0c
2014-04-15Build the vclopengl lib for Android, too, i.e. for all our platformsTor Lillqvist
Change-Id: I244eb4877801ceb0ff22e8591dccd6b801d00d68
2014-04-15move some common OpenGL methods to vclMarkus Mohrhard
Change-Id: Ic96487afce64bfb0c1dfcc03c088e5d6e1b34ad3
2014-04-15move the opengl headers to vcl/opengl for better separationMarkus Mohrhard
Change-Id: I1bdd0fe0d27674da69a61bd8b438f0c9b050a337
2014-04-14update_pchThomas Arnhold
Change-Id: I099bff66a7796a5cf18e37e445467bdfb33de602
2014-04-14typo: occuring -> occurringThomas Arnhold
2014-04-14typo: hilight -> highlightThomas Arnhold
2014-04-14typo: foreward -> forwardThomas Arnhold
2014-04-14typo: suiteable -> suitableThomas Arnhold
2014-04-14typo: hierarchie -> hierarchyThomas Arnhold
2014-04-14typo: befor -> beforeThomas Arnhold
2014-04-14typo: choosen -> chosenThomas Arnhold
2014-04-14typo: independend -> independentThomas Arnhold
2014-04-14typo: dependend -> dependentThomas Arnhold
2014-04-14remove commented out codeThomas Arnhold
2014-04-14FS_DEBUG is never definedThomas Arnhold
2014-04-14InArbeit is unusedThomas Arnhold
means "work in progress", pretty long since 2000.
2014-04-14OLD_TAB_STYLE never definedThomas Arnhold
2014-04-13fdo#38844 Reduce XOR clipping for gradientsChris Sherlock
Removed XOR clipping version of ClipAndDrawGradientMetafile. Because it has been removed, the other version isn't really needed in it's own function so I've moved it back into DrawGradient. Change-Id: Ib1519a019061c8c71183db63e5c11681bcad4cc4
2014-04-12cppcheck: Possible inefficient checking for emptinessJulien Nabet
Change-Id: I2b353435b29046b05acbb1193fda168309e01f4b
2014-04-12cppcheck: Prefer prefix ++/-- operators for non-primitive typesJulien Nabet
Change-Id: I7060802164989c2797d4abea29a378eaa3a54b41
2014-04-12cppcheck: multiConditionJulien Nabet
2 "else if" with same condition, one of them is wrong and it seems here the first one. More details here: http://nabble.documentfoundation.org/Cppcheck-reports-else-if-condition-matches-previous-condition-vcl-td4104270.html Change-Id: I818cfa879a41c5818c429acc1645b1ee1f8b5103
2014-04-12Unify DrawGradient functions in OutputDeviceChris Sherlock
Turns out that the two versions of DrawGradient in OutputDevice are almost exactly the same in every way, except one deals with a rectangle and the other with a PolyPolygon. So I just convert the Rectangle into a PolyPolygon and use the PolyPolygon function. Now that the functions are unified, the need for a seperate function to clip and draw the gradient is no longer really required, so I've merged this back into DrawGradient. Change-Id: I94d4af1bb7dd900495672f0c0481dc9a1083ff67
2014-04-12Detect if polypolygon is a rectangle in DrawGradientChris Sherlock
If the polypolygon that we use for DrawGradient is a rectangle, then we need to 1) expand the gradient rectangle to avoid missing lines on the right and bottom edge, and 2) we should pass NULL as the clipping parameter for ImplDrawLinearGradient and ImplDrawComplexGradient. Change-Id: I8d8289ace069b5c500db59d1a2addfcea8388dfb
2014-04-12Reduce the clip region in ClipAndDrawGradientChris Sherlock
We should reduce OutputDevice's clipping region to the bounds of the polypolygon. To do this we run OutputDevice::Push(PUSH_CLIPREGION) to have it set the clip region of the device, then intersect the clip region of the device with the bounding rectangle. Change-Id: I58ff5d1def1eca3c1213c7fd2d6a7205b70cdd01
2014-04-11replace some SvStream seeking with calls to remainingSize()Michael Stahl
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
2014-04-11Remove unused functionStephan Bergmann
Change-Id: I150cbe9ca96f0fb9a6b1116f79a0711d78252ba5
2014-04-11Put writing the CGImages behind the env var DBG_WRITE_CGIMAGESTor Lillqvist
Change-Id: I1eac909bfa0ff3a945c294a2d6f4cb1d454ac985
2014-04-11coverity#708628 Uninitialized pointer fieldCaolán McNamara
Change-Id: I340eb9e7550083818874fed90d0a94e15fd597fd
2014-04-11ClipAndDrawGradientToBounds no longer requiredChris Sherlock
Now that we have removed XORClipAndDrawGradient, there is no need for the function ClipAndDrawGradientToBounds because the sole purpose of that function was to work out whether the system should use XOR clipping or not for gradients! Change-Id: Id29b804054dfc30a9cc350bf4958ea3b2420e272
2014-04-10Fix crash in ppd parser.Thorsten Behrens
Only access pKey after we've set it. Change-Id: If0be3972c36b3da9d9a456fe3746224372a443dc
2014-04-10It's "its", not "it's"Tor Lillqvist
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-10ImageIO does not handle CGImageMasksTor Lillqvist
Change-Id: Ie5a35f68041a9c65658b9ce569ed3202c8a72ecb
2014-04-10Avoid a couple of pointless constant variablesTor Lillqvist
Change-Id: If1dcb577d2dcc6477f43ad1be0e970e08d9093c6
2014-04-10Avoid pointless ifdef for iOS inside code not compiled for iOS anywayTor Lillqvist
The whole of svpbmp.cxx and svpvd.cxx are nowadays ifdeffed out for iOS. Change-Id: Iac1f66457dc315ea86f86d12e1f6eb5bf4bcbb8c
2014-04-10More iOS-only debugging hackery: write CGImages out as PNGs for inspectionTor Lillqvist
Change-Id: I966189a74414ea83b2ec7f5035cd7c9d4d674179
2014-04-10Set mbPrinter anc mbVirDev for iOS, tooTor Lillqvist
But, has no visible effect, doesn't fix rendering problems. Change-Id: Ic79b38b665e357a2dafe679c35979250c3bff538
2014-04-10Mention early exits in the verbose debugging logTor Lillqvist
Change-Id: I68e5aa92cb6ccff8b8d077c311d2ebc3f4676ae7
2014-04-10CF_TRACE also the CFRetain to avoid confusionTor Lillqvist
Change-Id: Iae712de4efbbe254ba381a036e2c84d5e27d5e40
2014-04-10Kill the ImplSVGDIData::mbNoXORClipping flagTor Lillqvist
Instead, act as if it was true on all platforms. Don't do XOR clipping on any platform. Simpler code is better code, and XOR tricks are generally very much out of fashion these days, I have been told. Didn't seem to have any visible ill effects on Linux at least. Change-Id: I6192006c77a4a81363ec7b3292f72d512d5e9b53 Reviewed-on: https://gerrit.libreoffice.org/8901 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-04-09-Werror=deprecated-declarations (on Debian, reportedly) (part2)Julien Nabet
Change-Id: Ifd6a9897e3ebf978968efed79a478fa72cebe51a
2014-04-09CTRunData fix include mishapNorbert Thiebaud
Change-Id: If60a02f42a64ac60fb5be1072bf34efcbfa3cc6b
2014-04-09coretext: what to include is SDK dependantNorbert Thiebaud
Change-Id: Ie3cfd1427dfe668c4cf682efa1f728dea764d277
2014-04-09vcl quartz: cache per-run glyphs informationNorbert Thiebaud
GetNextGlyphs could only deal with 1 glyph at the time and was recalculing a lot of thing while iterating on the glyphs This is not just a performance issue.. the notiong of keeping per run glyphs information will be useful to re-establish the proper support of glyphs display positionning by SetDXArray() which today is completely ignored, in favor or letting CoreText spread the extra free space itself. Change-Id: Ib267c3e490619b650d4149f4b15b5758802942ba Reviewed-on: https://gerrit.libreoffice.org/8879 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-04-10Minor whitespace changeChris Sherlock
Change-Id: Icf3cc0ece477a1370d6dbf609e6b121075b3b999
2014-04-10Check if polygon is a rectangle when drawing gradientChris Sherlock
DrawGradient should check to see if the polygon is a rectangle before adding the gradient to the metafile. If it's a rectangle, we are currently unnecessarily adding XGRAD_SEQ_(BEGIN|END) comment records. Change-Id: I38aef322469f45403ed105d971d7e1d1441ba6a0
2014-04-10Cannot draw metafile-based grayscale gradient into a polygonChris Sherlock
OutputDevice::DrawGradient doesn't check to see if it's meant to be drawing a grayscale gradient when it adds it into the OutputDevice metafile. Now fixed. Change-Id: I83cb5255c01901e33ca1f751e91e8a77292663e6
2014-04-09WaE: -Werror=sign-compareCaolán McNamara
Change-Id: I160a760a13c8e5140d6df295a9dffd05cf5e7b81
2014-04-10Remove unnecessary bound-box parameter from clipping functionsChris Sherlock
The bounding rectangle actually comes from the polygon. Therefore, it's not needed. Removed from the following functions in OutputDevice, et al + ClipAndDrawGradient + XORClipAndDrawGradient + ClipAndDrawGradientMetafile Change-Id: I4a87edcddb8895871982f0448854e1c0854124bc
2014-04-09fdo#70666 avoid only bad Graphite ligature replacementLászló Németh
Change-Id: Ibd42c70edbd8a5ca5eba34bcb92e801c8dc97ba0