summaryrefslogtreecommitdiff
path: root/canvas
AgeCommit message (Collapse)AuthorFilesLines
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl1-0/+1
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-12Bump cairo version to 1.2.0Riccardo Magliocchetti1-7/+0
Requirement already fullfilled by RHEL 5 Change-Id: I2304ecac744d1b46b4329ab6d1a0b75739d5c4ea Reviewed-on: https://gerrit.libreoffice.org/12250 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini1-1/+1
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-10fix spelling implemenation -> implementationNoel Grandin1-1/+1
Change-Id: I5ac499df1f4063a80a5d41f60778106a7b96940d
2014-11-10merge vcllo and vclopenglloMarkus Mohrhard1-1/+0
Change-Id: I419ca67dc1f87dd9ac751aa5a094fecf58136edb
2014-11-06Revert "use the new OUString::fromUtf8 method"Stephan Bergmann1-1/+1
This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
2014-11-06use the new OUString::fromUtf8 methodNoel Grandin1-1/+1
Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
2014-11-04Kill directx < 9 ifdeferyRiccardo Magliocchetti2-141/+1
Baseline is Windows XP and SP3 includes directx 9.0c Change-Id: Ib7095ebb71f297898ae8b316e3b9f18e7c052f34 Reviewed-on: https://gerrit.libreoffice.org/12246 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-11-03coverity#982921 do not leakDavid Tardon1-1/+1
Change-Id: I7f40b7e72caa67644b23f02fa6c2a4ccfe4f354d
2014-10-13create a macro library for implementing bit-flags typesNoel Grandin3-6/+6
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, changed from a macro- to a template-based solution. (Unfortunately MSVC 2012 does not support explicit conversion operators. Worked around that with explicit #ifs rather than some HAVE_EXPLICIT_CONVERSION_OPERATORS and SAL_EXPLICIT_CONVERSION_OPERATOR ainticipating we hopefully soon move to a baseline that requires unconditional support for them.) Change-Id: I4a89643b218d247e8e4a861faba458ec6dfe1396
2014-10-03loplugin: cstylecastNoel Grandin1-5/+6
Change-Id: Ie478d1fcfd3b64d7a2128887c216b5e0b4501ab9
2014-10-03GLSL files should go into $(LIBO_ETC_FOLDER)/openglTor Lillqvist1-1/+1
(And not $(LIBO_BIN_FOLDER)/opengl. Note that on Linux and Windows, LIBO_ETC_FOLDER and LIBO_BIN_FOLDER are the same, "program".) That's where getShaderFolder() in vcl/source/opengl/OpenGLHelper.cxx looks for them. Also, as they are data and not executable code, to conform to strict OS X code signing and sandboxing requirements, they definitely should not be in $(LIBO_BIN_FOLDER) Change-Id: I902e08f7a1f142697df827d50e0bda74be918eb4
2014-09-30fix windows buildNoel Grandin1-2/+2
after commit c9d4a2887c13a5df244022276dd79a5bef8af0ea "fdo#82577: Handle PolyPolygon" Change-Id: Iac00779e4f8d94bc93a4112f7ad6abf3db14fad5
2014-09-30fdo#82577: Handle PolyPolygonNoel Grandin9-21/+20
Put the TOOLS PolyPolygon class in the tools namespace. Avoids clash with the Windows PolyPolygon typedef. Change-Id: I811ecbb3d55ba4ce66e4555a8586f60fcd57fb66
2014-09-30fdo#82577: Handle RegionNoel Grandin6-14/+14
Put the VCL Region class in the vcl namespace. Avoids clash with the X11 Region typedef. Change-Id: I6e008111df7cf37121fbc3eaabd44a8306338291
2014-09-23fdo#82577: Handle WindowNoel Grandin22-35/+35
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-18fix windows buildNoel Grandin1-1/+1
after my commit 60e78fbb806bb "fdo#82577: Handle Font" Author: Noel Grandin <noel@peralex.com> Date: Tue Sep 16 10:09:58 2014 +0200 fdo#82577: Handle Font be ignored, and an empty message aborts the commit. Change-Id: Id87e9ac86b457962fa156fdb1607dfe779b8564d
2014-09-18fdo#82577: Handle FontNoel Grandin13-20/+20
Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-02remove SAL_DEBUGs introduced earlierMarkus Mohrhard2-20/+0
Change-Id: I901188b5b0a3e64e2407d039dd80f89cce8cf6de
2014-09-02some temporary debug outputMarkus Mohrhard3-2/+30
2014-09-02add warning about bad inputMarkus Mohrhard1-0/+1
Change-Id: I7018813740460c79d09318770fbdcb24a24a441e
2014-09-02make the shaders compliant to GLSL 1.2Markus Mohrhard4-12/+33
Change-Id: Ic15760ca40d719ae333003c9bc241c813cb284fa
2014-09-02fix shader names, the .glsl is attached in OpenGLHelper::LoadShaderMarkus Mohrhard1-6/+6
Change-Id: I267c1fefa5330359f3aea0d57d38a153232b655f
2014-09-02request a legacy context for OGLTransMarkus Mohrhard1-0/+1
Change-Id: If001121da14ca9d15f6c36af30428f1851710524
2014-08-31coverity#1233512 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: Idc1e1e905282ff44581b26ea1557c70641abe8b8
2014-08-29Fix build with boost-1.56.0.Jörg Sonnenberger2-3/+4
Change-Id: I61686bf61ff1e0561c385492c563e4495456ca47 Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2014-08-20vcl: use enum for complex text layout constantsNoel Grandin4-18/+12
Since these constants are bitfield flags, we define some methods to make working with them reasonably type safe. Move the definitions to outdevstate.hxx, since we need the values there, and that appears to be the "root most" header file. Also dump TEXT_LAYOUT_BIDI_LTR constant, since it means the same thing as TEXT_LAYOUT_DEFAULT (ie. 0), and leaving it in causes people to write weird code thinking that it's a real flag. Change-Id: Iddab86cd6c78181ceb8caa48e77e1f5a8e526343 Reviewed-on: https://gerrit.libreoffice.org/10676 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-08-13fix invalid memory access in dx bitmap codeMarkus Mohrhard1-2/+2
Change-Id: If3a495ab2db068f37dcee184e61c0c1e66f09666
2014-08-13fix OpenGL canvas windows buildMarkus Mohrhard6-3/+8
Change-Id: Ic6ed9c69003fa79a60310dc0b010ffc0ca868791
2014-08-08-Werror,-Wunused-private-fieldStephan Bergmann1-5/+2
Change-Id: I03d8f81b17341e128c9c0517ecca2a76f7b4552c
2014-08-08-Werror,-Wunused-macrosStephan Bergmann3-6/+0
Change-Id: I614e1736844637eb0a5bab3830473c36d7999426
2014-08-08reimplement custom sprite rendering with FBOMarkus Mohrhard3-13/+33
Change-Id: I8d7a54fac61a3072d4f34615e71e37c70dec4e50
2014-08-08reuse OpenGLContext in OGL canvasMarkus Mohrhard9-552/+71
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-08extract shaders to own file and use shared shader loadingMarkus Mohrhard11-245/+274
Change-Id: I1af7e03a3e46f3cb49162be9351ce22f54d08c52
2014-08-06Fix *_component_getFactory function typeStephan Bergmann1-2/+2
Change-Id: Ic9cd9e1a8188b810e0db336c5844ffa943f0c7c4
2014-07-29Accept also WINDOWS_SDK_VERSION == 81Tor Lillqvist3-3/+3
Change-Id: Id1a8f91b6c74c19c3b14b24a86580d06cec3dd97
2014-07-20vcl consitent use of long for corrdinateNorbert Thiebaud5-9/+9
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-02canvas: sal_Bool -> boolStephan Bergmann6-16/+16
Change-Id: I4292b0e8810fac781e64272b315dd32eced3623c
2014-06-18rtl::Reference fits just fine hereStephan Bergmann8-30/+14
Change-Id: I268f6d2577b727c6aa072ee766b3f5f41bdb131b
2014-06-17improve the inlinesimplememberfunctions clang pluginNoel Grandin17-53/+11
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin5-14/+2
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-04coverity#735682 Unchecked dynamic_castCaolán McNamara1-4/+3
Change-Id: Ie3ac1e9960afa71e5cf221bb67b8b8ccb609dc38
2014-05-29remove unnecessary NULL parameter passed to UNO ExceptionNoel Grandin6-13/+13
.. now that we have a default value for that parameter Change-Id: I54d6b0a0a01ce2f2e5168ada0c427424de0477bc
2014-05-26coverity#736029 Missing break in switchCaolán McNamara1-1/+1
Change-Id: I12dcf88cc2b54c89cc9d56299b17730ad19a4854
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin1-4/+2
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-19canvas: drop using from headersThomas Arnhold8-31/+27
Change-Id: Ifcfd08984df883a06a133b407ac90ddf259b3bef
2014-05-11dx_winstuff.hxx does already undef themThomas Arnhold2-10/+0
Change-Id: I32609eb3477b177ffd2628686ba8313baf223ed7
2014-05-08DX canvas: provide a OutputDevice pointer as a device handler instead of HDCZolnai Tamás4-17/+25
With it all canvas can be handled on the same way. avmedia/source/win/window.cxx: always comes a HWND Change-Id: Id6b8e6d52b8a136143f724daf8feff5c85cf5804
2014-05-08coverity#735401 Logically dead codeCaolán McNamara1-3/+0
Change-Id: I62f278dfd5df7485f809d642789951ab450ea458
2014-05-08canvas: sal_Bool->boolNoel Grandin25-51/+51
Change-Id: I0f0fe3bb937299b4f00a46d7dda6764c9d21a18f