| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "../../../../include/fxge/fx_ge.h" | 7 #include "../../../../include/fxge/fx_ge.h" |
| 8 #include "../../dib/dib_int.h" | 8 #include "../../dib/dib_int.h" |
| 9 #include "../../ge/text_int.h" | 9 #include "../../ge/text_int.h" |
| 10 #include "../../../../include/fxcodec/fx_codec.h" | 10 #include "../../../../include/fxcodec/fx_codec.h" |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 } | 362 } |
| 363 CAgg_PathData path_data; | 363 CAgg_PathData path_data; |
| 364 path_data.BuildPath(pPathData, NULL); | 364 path_data.BuildPath(pPathData, NULL); |
| 365 agg::rasterizer_scanline_aa rasterizer; | 365 agg::rasterizer_scanline_aa rasterizer; |
| 366 rasterizer.clip_box(0.0f, 0.0f, (FX_FLOAT)(GetDeviceCaps(FXDC_PIXEL_WIDTH)),
(FX_FLOAT)(GetDeviceCaps(FXDC_PIXEL_HEIGHT))); | 366 rasterizer.clip_box(0.0f, 0.0f, (FX_FLOAT)(GetDeviceCaps(FXDC_PIXEL_WIDTH)),
(FX_FLOAT)(GetDeviceCaps(FXDC_PIXEL_HEIGHT))); |
| 367 RasterizeStroke(rasterizer, path_data.m_PathData, pObject2Device, pGraphStat
e); | 367 RasterizeStroke(rasterizer, path_data.m_PathData, pObject2Device, pGraphStat
e); |
| 368 rasterizer.filling_rule(agg::fill_non_zero); | 368 rasterizer.filling_rule(agg::fill_non_zero); |
| 369 SetClipMask(rasterizer); | 369 SetClipMask(rasterizer); |
| 370 return TRUE; | 370 return TRUE; |
| 371 } | 371 } |
| 372 class CFX_Renderer : public CFX_Object | 372 class CFX_Renderer |
| 373 { | 373 { |
| 374 private: | 374 private: |
| 375 int m_Alpha, | 375 int m_Alpha, |
| 376 m_Red, | 376 m_Red, |
| 377 m_Green, | 377 m_Green, |
| 378 m_Blue, | 378 m_Blue, |
| 379 m_Gray; | 379 m_Gray; |
| 380 FX_DWORD m_Color; | 380 FX_DWORD m_Color; |
| 381 FX_BOOL m_bFullCover; | 381 FX_BOOL m_bFullCover; |
| 382 FX_BOOL m_bRgbByteOrder; | 382 FX_BOOL m_bRgbByteOrder; |
| (...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1622 } | 1622 } |
| 1623 SetDeviceDriver(pDriver); | 1623 SetDeviceDriver(pDriver); |
| 1624 return TRUE; | 1624 return TRUE; |
| 1625 } | 1625 } |
| 1626 CFX_FxgeDevice::~CFX_FxgeDevice() | 1626 CFX_FxgeDevice::~CFX_FxgeDevice() |
| 1627 { | 1627 { |
| 1628 if (m_bOwnedBitmap && GetBitmap()) { | 1628 if (m_bOwnedBitmap && GetBitmap()) { |
| 1629 delete GetBitmap(); | 1629 delete GetBitmap(); |
| 1630 } | 1630 } |
| 1631 } | 1631 } |
| OLD | NEW |