mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-20 14:00:10 +01:00
Win32: Remove unused code and defines for old toolchains
This commit is contained in:
parent
361240657c
commit
d0ee67a142
7 changed files with 0 additions and 75 deletions
|
|
@ -36,22 +36,6 @@
|
|||
|
||||
#include <windows.h>
|
||||
|
||||
#if !defined(POSTSCRIPT_IDENTIFY)
|
||||
# define POSTSCRIPT_IDENTIFY 0x1015
|
||||
#endif
|
||||
|
||||
#if !defined(PSIDENT_GDICENTRIC)
|
||||
# define PSIDENT_GDICENTRIC 0x0000
|
||||
#endif
|
||||
|
||||
#if !defined(GET_PS_FEATURESETTING)
|
||||
# define GET_PS_FEATURESETTING 0x1019
|
||||
#endif
|
||||
|
||||
#if !defined(FEATURESETTING_PSLEVEL)
|
||||
# define FEATURESETTING_PSLEVEL 0x0002
|
||||
#endif
|
||||
|
||||
static cairo_status_t
|
||||
_cairo_win32_print_gdi_error (const char *context)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -76,20 +76,6 @@ static const cairo_device_backend_t _cairo_win32_device_backend = {
|
|||
_cairo_win32_device_destroy,
|
||||
};
|
||||
|
||||
#if 0
|
||||
D2D1_RENDER_TARGET_PROPERTIES props = D2D1::RenderTargetProperties(D2D1_RENDER_TARGET_TYPE_DEFAULT,
|
||||
D2D1::PixelFormat(
|
||||
DXGI_FORMAT_B8G8R8A8_UNORM,
|
||||
D2D1_ALPHA_MODE_IGNORE),
|
||||
0,
|
||||
0,
|
||||
D2D1_RENDER_TARGET_USAGE_NONE,
|
||||
D2D1_FEATURE_LEVEL_DEFAULT
|
||||
);
|
||||
|
||||
hr = m_pD2DFactory->CreateDCRenderTarget(&props, &device->d2d);
|
||||
#endif
|
||||
|
||||
cairo_device_t *
|
||||
_cairo_win32_device_get (void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -56,10 +56,6 @@
|
|||
#include <wchar.h>
|
||||
#include <windows.h>
|
||||
|
||||
#if defined(__MINGW32__) && !defined(ETO_PDY)
|
||||
# define ETO_PDY 0x2000
|
||||
#endif
|
||||
|
||||
#define PELS_72DPI ((LONG)(72. / 0.0254))
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -45,19 +45,6 @@
|
|||
|
||||
#include <wchar.h>
|
||||
|
||||
#ifndef SPI_GETFONTSMOOTHINGTYPE
|
||||
#define SPI_GETFONTSMOOTHINGTYPE 0x200a
|
||||
#endif
|
||||
#ifndef FE_FONTSMOOTHINGCLEARTYPE
|
||||
#define FE_FONTSMOOTHINGCLEARTYPE 2
|
||||
#endif
|
||||
#ifndef CLEARTYPE_QUALITY
|
||||
#define CLEARTYPE_QUALITY 5
|
||||
#endif
|
||||
#ifndef TT_PRIM_CSPLINE
|
||||
#define TT_PRIM_CSPLINE 3
|
||||
#endif
|
||||
|
||||
#define CMAP_TAG 0x70616d63
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -55,23 +55,6 @@
|
|||
#include "cairo-surface-inline.h"
|
||||
#include "cairo-surface-offset-private.h"
|
||||
|
||||
#if !defined(AC_SRC_OVER)
|
||||
#define AC_SRC_OVER 0x00
|
||||
#pragma pack(1)
|
||||
typedef struct {
|
||||
BYTE BlendOp;
|
||||
BYTE BlendFlags;
|
||||
BYTE SourceConstantAlpha;
|
||||
BYTE AlphaFormat;
|
||||
}BLENDFUNCTION;
|
||||
#pragma pack()
|
||||
#endif
|
||||
|
||||
/* for compatibility with VC++ 6 */
|
||||
#ifndef AC_SRC_ALPHA
|
||||
#define AC_SRC_ALPHA 0x01
|
||||
#endif
|
||||
|
||||
#define PELS_72DPI ((LONG)(72. / 0.0254))
|
||||
|
||||
/* the low-level interface */
|
||||
|
|
|
|||
|
|
@ -44,13 +44,6 @@
|
|||
#include "cairo-surface-clipper-private.h"
|
||||
#include "cairo-surface-private.h"
|
||||
|
||||
#ifndef SHADEBLENDCAPS
|
||||
#define SHADEBLENDCAPS 120
|
||||
#endif
|
||||
#ifndef SB_NONE
|
||||
#define SB_NONE 0
|
||||
#endif
|
||||
|
||||
#define WIN32_FONT_LOGICAL_SCALE 32
|
||||
|
||||
CAIRO_BEGIN_DECLS
|
||||
|
|
|
|||
|
|
@ -53,10 +53,6 @@
|
|||
#include <wchar.h>
|
||||
#include <windows.h>
|
||||
|
||||
#if defined(__MINGW32__) && !defined(ETO_PDY)
|
||||
# define ETO_PDY 0x2000
|
||||
#endif
|
||||
|
||||
/**
|
||||
* SECTION:cairo-win32
|
||||
* @Title: Win32 Surfaces
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue