summaryrefslogtreecommitdiff
path: root/vcl/source
AgeCommit message (Collapse)AuthorFilesLines
2014-08-08add possibility to generate FBO with textureMarkus Mohrhard1-8/+26
The caller is responsible to delete the buffers. Depending on bRenderbuffer either with glDeleteRenderbuffers or with glDeleteTextures. Change-Id: I5ccbd49862c381abf04e812765cced485a083f89
2014-08-08reuse OpenGLContext in OGL canvasMarkus Mohrhard1-0/+10
The only thing that needs to be reimplemented is the pbuffer based custom sprite rendering. We should use a FBO with a texture backend for that. This will also save several OpenGL context switches! Change-Id: I4aef33ae2499e44c8b5f41c296d8721cb94a37a1
2014-08-08make sure that we always delete the shader and not only the programMarkus Mohrhard1-3/+3
Change-Id: Ia02fb20d335e2172f607f13a0de78ea666d094f5
2014-08-07coverity#1202907 Uninitialized scalar variableCaolán McNamara2-1/+39
Change-Id: I8cec0ea104fedfd7d89ac91a5b7f395246da8db0
2014-08-05fdo#81516: vcl: limit number of CFFs read from fontMichael Stahl1-5/+13
Change-Id: I9928b9805169a2dbb41be669dc37617b30bc672b
2014-08-05fdo#81516 Support fonts like Source Han Sans with > 16 FDArray elementsAudrey Tang1-1/+1
Change-Id: I3f82574f434060d62dc3faeb730341c5b169ce9f
2014-08-02vcl: evidently a little more type safety is required hereMichael Stahl1-4/+5
MultiSalLayout::AdjustLayout() crashes with mangled stack. (regression from 2b8528a2745bec7909bfe2265d6110a9964eef47) Change-Id: I20b7980dd89dd1b72063c2187ac3a4735babc4c4
2014-07-30Avoid needless truncation to intStephan Bergmann1-2/+2
Change-Id: Ibb9088e73e3e48952ce7f2f4ec42392f7633e8a7
2014-07-29function abs given an argument of type long but has parameter of type intStephan Bergmann1-2/+6
Change-Id: Ibc64a17dc4a779e05946dfe5d1d12109e643a7fd
2014-07-29Blind fix attempt for compiling against the 10.6 SDKTor Lillqvist1-0/+6
Change-Id: I0ee5f4f709aa521d85974ebb6518d8f2bce3f513
2014-07-27fdo#75757: remove inheritance to std::vectorTakeshi Abe3-83/+50
... by boost::ptr_vector. Originally TextCharAttribList::Clear() was never called with false, so this drops the argument. Change-Id: I0306cd787dd38de0960af38afe9c08a910195b26 Reviewed-on: https://gerrit.libreoffice.org/10549 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-07-26coverity#707564 Uninitialized scalar variableCaolán McNamara1-0/+8
and coverity#707566 Uninitialized scalar variable coverity#707568 Uninitialized scalar variable coverity#707576 Uninitialized scalar variable coverity#1028320 Uninitialized scalar variable Change-Id: I7191d019c1d7c4382253272fe7d58d82a4b41e13
2014-07-25Revert "fdo#80911 toggle original page orientation on paper fallback"Caolán McNamara1-12/+6
see rhbz#1122868 for problems, needs a different approach This reverts commit 1c6bd2c40fd03ec735fd6dbec01520f10ee1d55a. Change-Id: I3aa943c086540a7bcde31ebb03c5be552dd739c6
2014-07-23make libgltf compile on OSXMarkus Mohrhard1-0/+1
Change-Id: Ie39292137f931bfd557f66c485e104cf5d5089b8
2014-07-22Related: fdo#81457 skip setting an empty allocationCaolán McNamara1-4/+7
if the dimension is 0, don't bother calculating a bunch of <= 0 sizes, rely on the parents clipping to hide the lot instead Change-Id: I5b593a5b6b6c3614beb7f9bf3328fa469b700972
2014-07-22callcatcher: update unused codeCaolán McNamara2-21/+0
Change-Id: I1dd1b40d807c7c9d9b145aca9f69a67d786ec5ff
2014-07-21vcl: fix MetaTextArrayAction copying only half of mpDXArrayMichael Stahl1-1/+1
This causes an infinite loop in forms_unoapi test forms.OCheckBoxModel (regression from cd3d26b7edbce67805259a71e4118223e02ebdd4) Change-Id: I46715e1f1381fa92419558c34c6d47c3767de3e1
2014-07-21Our log area checking Clang plugin requires it to be a string literalTor Lillqvist1-12/+10
And even if that wasn't a problem, we don't use a macro for the log area anywhere else in the codebase, so why suddenly introduce such a convention here? What's the gain from that? On the contrary, haven't we been *reducing* the amount of pointless #define FOO "foo" style stuff? Change-Id: I1247dc499136cdf3ae1921e6ffe7c7f63d57cfc1
2014-07-21split helper and fix buildCaolán McNamara1-0/+1
Change-Id: Ie479d363152d3c6a109d6e924b09c155c79511c8
2014-07-21coverity#706084 Unintended sign extensionCaolán McNamara1-1/+1
and coverity#706085 Unintended sign extension Change-Id: I4bb617cd6927542dfef6dea89c5417ec4f9ed495
2014-07-21Extract getGLVersion() method to OpenGLHelperZolnai Tamás1-0/+15
Change-Id: If3b7a6c71164f2b55defe8c28cdce69de9283175
2014-07-21fdo#81532 Handle symlinks to icon themes correctlyTobias Lippert1-25/+43
- added logging for icon theme scanning. Change-Id: I799c5fc09879411020142f7808da0d9f2f63dc17 Reviewed-on: https://gerrit.libreoffice.org/10406 Tested-by: Rene Engelhard <rene@debian.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-20vcl use DeviceCoordinate got GetNextGlyphsNorbert Thiebaud5-35/+39
Change-Id: I0b03973b2d09a0ce51a6ee7dcca5a310a544c3a9
2014-07-20vcl consitent use of long for corrdinateNorbert Thiebaud19-116/+130
most of length in vcl are calculated in 'long' but array of X position tend to be in sal_Int32. As a prep work to be able to support 'double' as the base type of Device Coordinate, harmonize the use of 'long' for non-float coordinate. Change-Id: I7cb33301ff6a5e2c62247b36a4e07e168a58a323
2014-07-20vcl: add floating equivalent for MapResNorbert Thiebaud2-1/+55
Change-Id: I165e403d2834d341f7da7a280859afccb995a3bb
2014-07-20Use DeviceCorrdinate for DXArray in FillDXArray and ImplLayoutArgsNorbert Thiebaud3-42/+108
Change-Id: Ifba7104a13cf737200c81d1a1bd5ece9a29da60e
2014-07-20bnc#881024 Don't world transform font size in WMF/EMF importTomaž Vajngerl2-5/+14
Change-Id: Ia865b84ee2b159ff7251ab5a769a2b635dd2a1ea
2014-07-18convert HITTEST #define to enumNoel Grandin2-9/+9
Change-Id: I2a4066c66894e0bd9c349a7c5b8db3a8398451d2
2014-07-17Renamed brdcst.[hc]xx to SfxBroadcaster.[hc]xxTobias Lippert1-1/+0
- Remove includes from files where they are not needed. - Update pch files Change-Id: I0188e3934ef429008c1ef495ab1d5b27f38664d5 Reviewed-on: https://gerrit.libreoffice.org/10342 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-07-16first part of OpenGL context work for OSXMarkus Mohrhard1-8/+57
Context is correctly created and the OpenGL calls no longer crash but it seems that I still have a buffer problem so nothing is shown on the screen. Change-Id: Ia9cc585cd92c6049197dbfa47a41e30e130739ed
2014-07-15fdo#79673 quartz: draw 'bullet' for 'space' directly in one passNorbert Thiebaud1-13/+13
the current implementation of CoreText simply dropped the proper implementation of DrawTextArray, by ignoring DXArray this very visibly borked the show-non-displayable character feature of writer.. the bullet representing the 'spaces' was quite misplaced. This solve specifically this problem. More work is needed to bring proper support of DXArray back to CoreText Conflicts: vcl/inc/sallayout.hxx vcl/source/outdev/text.cxx Change-Id: Idb2cc90d5ffaa8b83f79241cee2d512112d1c3be
2014-07-15Related: fdo#80633 we can retain cached size for visibility changeCaolán McNamara5-10/+13
we still need to invalidate the layout of our parents, but we can keep the cached optimal size Change-Id: I8e77366bd61ff45d34f9d411c7f501a3a9ccbd4e
2014-07-15fix higher debug levelsCaolán McNamara1-1/+1
Change-Id: I74e4689062d452f8e0fba115cd984aa876711c45
2014-07-14avoid memory leakDavid Tardon1-0/+3
Change-Id: I89e458dbd01a45761948b64cb457424383ca5f51
2014-07-14Related: fdo#52226 ensure graphics are swapped in on DrawingML::WriteImageCaolán McNamara1-0/+2
I imagine it would be best that the Graphics were delivered pre-swapped in by higher levels in case there are second level caches or more complex caching systemed wrapped around it, so warn about it in debug mode but give it a last-ditch shot anyway. i.e. while the .docx problem should be fixed there is a report of a very similar .xlsx problem Change-Id: Ie40ee10fe5cba8ff9c321f47b83e33ee2c1425fd
2014-07-14fix higher debug level buildCaolán McNamara1-11/+0
Change-Id: I5bfa022c3c9fe8d24726989d9068fce7273e3f2d
2014-07-13make threaded rendering work correctly, fdo#81110Markus Mohrhard1-0/+11
The context may only be bound in one thread! Change-Id: Ibb67f88c2f11fd48884ee39d89620193e4e5471b
2014-07-11new loplugin: externalandnotdefinedNoel Grandin9-19/+76
Find "missing headers," where a function is declared directly in the .cxx (as extern) and not defined, and should arguably instead be declared in an include file. Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-07-10fdo#80498: vcl: Revert "fdo#74124: Scale the pictures before calling ...Michael Stahl1-23/+1
... ImplDrawAlpha()." This reverts commit 3cf3700b7a903e88f5296076c40ae854bce91cdc. It may look nicer but is unusably slow when scrolling in Writer. Conflicts: vcl/source/gdi/outdev2.cxx Change-Id: I582f3f02a2f8915c244b04b2fe95b6af926396b9
2014-07-10vcl/source/window/wrkwin.cxx: drop unused svsys.h headerDouglas Mencken1-1/+0
Change-Id: Iad99721f6026512584c6e1cb763b81ffc6d1a625 Reviewed-on: https://gerrit.libreoffice.org/10152 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-10vcl/source/outdev/outdev.cxx: drop unused svsys.h headerDouglas Mencken1-1/+0
Change-Id: I21308351e86372ce938480a8514415756f9bf549 Reviewed-on: https://gerrit.libreoffice.org/10165 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-10setting WB_SCROLL on a toolbar only works from ctorCaolán McNamara1-0/+15
Change-Id: Iafd4d132abb63d698f8907c4aa71bd09c35babde
2014-07-10coverity#1225002 Uninitialized scalar fieldCaolán McNamara1-0/+1
Change-Id: Iec71c9b509b785a6fe043c62e103cb4a930fd416
2014-07-10Clean up AlphaMask::CopyPixel "override" hackStephan Bergmann3-109/+109
...that required undefined downcasts of Bitmap objects that are not actually AlphaMasks. Change-Id: I629f4a81d40a2a85cd877ffec13445786ef58187
2014-07-09Avoid undefined premature downcast to potentially wrong typeStephan Bergmann1-3/+2
Change-Id: I53bf8b74edab720fccc829f9228f7d9c4a8c2dad
2014-07-08Related: fdo#80633 dialog size cache has to be invalidated tooCaolán McNamara1-0/+3
otherwise the VclExpander will have no effect Change-Id: I039fa361d7088dfe4a6ff849623e34b27e2be26b
2014-07-08Fix some round() confusionTor Lillqvist1-7/+9
Why insist on using the same name as a standard function? Causes confusion with VS2013 at least, "ambiguous call to overloaded function." Sure, this might be caused by a bug in the compiler (or its headers). Or maybe vagueness in the language definition? Who cares, I still claim that intentionally writing an own function called round() is asking for problems. So rename it to round_to_long(). (And then the return value of calls to this function, which is of type 'long', is assigned in a couple of places to variables of type 'int', fun... Intentional, knowing there will be no overflow, or a bug waiting to happen?) Change-Id: If15d44f10f9f05de1c7c79492baf158eee770b8b
2014-07-04vcl: printf -> SAL_INFO in Font::SetFillColorMiklos Vajna1-2/+1
Change-Id: Icbe3d7f2dc8e25bfde6efc92435f1cef50a3b419
2014-07-04Resolves: fdo#80911 toggle original page orientation on paper fallbackCaolán McNamara1-6/+12
User defined page sizes which match rotated paper sizes available to the printer don't work correctly when they are already in landscape mode. i.e. the orientation should be toggled, not overwritten. Change-Id: I30dca5f988ad72319410a03f47eccff277be8640
2014-07-04coverity#736163 Dereference Null returnNorbert Thiebaud1-1/+7
Change-Id: I62046a619315d53dbeefbe0ebd26d24917adca14