Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Side by Side Diff: core/src/fxcrt/fx_basic_coords.cpp

Issue 294353002: Fix warnings in android build, fix font rendering issue, fix issue 357588: wrong characters represe… (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Patch Set after rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/fxcrt/fx_ext.h" 7 #include "../../include/fxcrt/fx_ext.h"
8 void FX_RECT::Normalize() 8 void FX_RECT::Normalize()
9 { 9 {
10 if (left > right) { 10 if (left > right) {
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 { 253 {
254 this->a = a; 254 this->a = a;
255 this->b = b; 255 this->b = b;
256 this->c = c; 256 this->c = c;
257 this->d = d; 257 this->d = d;
258 this->e = e; 258 this->e = e;
259 this->f = f; 259 this->f = f;
260 } 260 }
261 void CFX_Matrix::Set(const FX_FLOAT n[6]) 261 void CFX_Matrix::Set(const FX_FLOAT n[6])
262 { 262 {
263 FXSYS_memcpy32((void*)this, &n, sizeof(CFX_Matrix)); 263 this->a = n[0];
264 this->b = n[1];
265 this->c = n[2];
266 this->d = n[3];
267 this->e = n[4];
268 this->f = n[5];
264 } 269 }
265 void CFX_Matrix::SetReverse(const CFX_Matrix &m) 270 void CFX_Matrix::SetReverse(const CFX_Matrix &m)
266 { 271 {
267 FX_FLOAT i = m.a * m.d - m.b * m.c; 272 FX_FLOAT i = m.a * m.d - m.b * m.c;
268 if (FXSYS_fabs(i) == 0) { 273 if (FXSYS_fabs(i) == 0) {
269 return; 274 return;
270 } 275 }
271 FX_FLOAT j = -i; 276 FX_FLOAT j = -i;
272 a = m.d / i; 277 a = m.d / i;
273 b = m.b / j; 278 b = m.b / j;
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 left = x[i]; 552 left = x[i];
548 } 553 }
549 if (top < y[i]) { 554 if (top < y[i]) {
550 top = y[i]; 555 top = y[i];
551 } 556 }
552 if (bottom > y[i]) { 557 if (bottom > y[i]) {
553 bottom = y[i]; 558 bottom = y[i];
554 } 559 }
555 } 560 }
556 } 561 }
OLDNEW
« no previous file with comments | « core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/mct.c ('k') | core/src/fxge/android/fpf_skiafontmgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698