Commit Graph

22 Commits

Author SHA1 Message Date
Stephan Bergmann
29eb4f122b clang-cl loplugin: canvas
Change-Id: I3e4f9ccbe608a98759f2a9e312839eb909e6b575
Reviewed-on: https://gerrit.libreoffice.org/29878
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-16 14:19:29 +00:00
Mark Page
8561f8bfcc tdf#96099 Remove various smart pointer typedefs in canvas
Change-Id: Ied6ec5f7830c53a339de985d173c1dec711ac8f7
Reviewed-on: https://gerrit.libreoffice.org/26092
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-06-09 12:56:27 +00:00
Andrea Gelmini
b2e86d2e26 Fix typos
Change-Id: Iea11112a1bf1ff934de0e355b9e81979aa1966a3
Reviewed-on: https://gerrit.libreoffice.org/24286
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-04-22 06:47:06 +00:00
Noel Grandin
02a320777f convert canvas::IColorBuffer::Format to scoped enum
Change-Id: I0013c0b14992062be97977bf00f4af89fb2766f5
Reviewed-on: https://gerrit.libreoffice.org/22633
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-23 11:23:11 +00:00
Stephan Bergmann
85453425a8 -Werror,-Wunused-private-field
Change-Id: Ie14d3b3474b7886add80bd6e223e76fbf964144e
2015-11-28 08:44:42 +01:00
Stephan Bergmann
6694e10a23 -Werror,-Wreorder
Change-Id: I27eb5c497985267dd00b5be2fb3c17f8d79745cf
2015-11-28 08:44:41 +01:00
Tor Lillqvist
f96508f323 tdf#92272: We need to twiddle the bytes from BGR to RGB
As far as I see, the surfaces created in the DX canvas are of
D3DFMT_A8R8G8B8 or D3DFMT_X8R8G8B8 format, which means that the bytes
(in memory order, on little-endian Windows) are B,G,R,A/X. So if the
desired destination wants R,G,B,A, we need to swap the blue and red
bytes.

Let's hope this doesn't break anything else...

Change-Id: I1b90d2cf95418f6557cac633ec6fce27599e8a61
2015-10-30 19:30:20 +02:00
Norbert Thiebaud
d44821675e remove imgdebug
imgdbug.h ins included in canvs under some debugging flags
but that header comes from
http://billbaxter.com/projects/imdebug/
and is nowhere to be found in our source. the original project
has been dead for a long while.. the last 'news' was that it was
migrating to the now defunc 'berlios' hosting site.

Change-Id: Idd030164f4ef0b28973530df69323cb952e99169
Reviewed-on: https://gerrit.libreoffice.org/17655
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-11 20:12:00 +00:00
Norbert Thiebaud
e5ec630414 stop inclduing canvas/verbosetraces.hxx and canvas/debug.hxx
also clean-up and 'standardize' the include sections of canvas' source code

Change-Id: Ib437a41ea41ae2ea6528f755ae5b2828775aaf73
Reviewed-on: https://gerrit.libreoffice.org/17633
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-11 03:57:18 +00:00
Riccardo Magliocchetti
6a7ae600b5 Kill directx < 9 ifdefery
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-04 16:23:12 +00:00
Markus Mohrhard
2f0259d73f fix invalid memory access in dx bitmap code
Change-Id: If3a495ab2db068f37dcee184e61c0c1e66f09666
2014-08-13 11:38:22 +02:00
Alexander Wilms
8747200c87 Remove visual noise from canvas
Change-Id: I0f01a4064ab6d1f55647ecdc1a8710e289e5d96c
2014-02-25 21:29:36 +01:00
Arnaud Versini
36a2db3722 Replace usage of rtl_*Memory with equivalent from string.h
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159
Reviewed-on: https://gerrit.libreoffice.org/734
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-01 18:48:05 +00:00
Thomas Arnhold
d80174e6f1 remove some more eof noise
Change-Id: Ib13c0435d61e803220d5444c29c99cf670340008
2012-08-08 13:53:52 +02:00
Christophe JAILLET
3396c06c55 Use rtl_zeroMemory in place of rtl_fillMemory(..., 0)
Change-Id: Idd83f6340d13a1d7111d0d5a7268f1aa8bf5c09e
2012-07-11 12:31:49 +05:30
Michael Meeks
bdc909b07d re-base on ALv2 code. 2012-06-19 18:00:37 +01:00
Norbert Thiebaud
24c0f87615 remove include of pch header in canvas 2011-11-27 12:57:22 -06:00
Fridrich Štrba
dcb890250f Revert "Work around compilation errors on 64-bit Windows"
This reverts commit a82aae8c5da6d708ff0efd17d28548f6d2fa5cc0, which breaks
directx canvas build on Windows 32-bit
2011-01-30 11:51:29 +01:00
Tor Lillqvist
eb841ee609 Work around compilation errors on 64-bit Windows
Again the ULONG clashes on 64-bit Windows cause pain. Work around by
using pre/postwin.h, and that then necessitates use of explict
WIN_BYTE instead of just BYTE. Sigh...
2011-01-25 01:52:16 +02:00
Sebastian Spaeth
4905a19032 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:02:15 +02:00
Jens-Heiner Rechtien
8764506704 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Kurt Zenker
9e15933dda INTEGRATION: CWS canvas05 (1.1.2); FILE ADDED
2008/06/03 23:52:24 thb 1.1.2.5: Removed extra level of indirection for getting a graphics for a surface; removed some unused code
2008/06/03 11:11:24 thb 1.1.2.4: Cleaned up image debugging stuff; fixed a few d3d debug warnings; fixed one deadlock rendering a bitmap from the same surface to itself; fixed premature ReleaseDC call in GraphicsProvider::getGraphics()
2008/05/23 22:03:45 thb 1.1.2.3: Moving all remaining new files to LGPL 3
2008/02/08 00:26:39 thb 1.1.2.2: #81092# Finishing cooperative canvas output stuff
2008/01/22 00:25:24 thb 1.1.2.1: #i81092# Making gdiplus and dx canvas more independent
2008-06-24 09:39:05 +00:00