Fixed warning/error in PictureRenderer.cpp
TBR by scroggo@google.com git-svn-id: http://skia.googlecode.com/svn/trunk@7634 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
905379a74e
commit
8ac811e160
@ -139,7 +139,7 @@ void PictureRenderer::end() {
|
||||
|
||||
int PictureRenderer::getViewWidth() {
|
||||
SkASSERT(fPicture != NULL);
|
||||
int width = fPicture->width() * fScaleFactor;
|
||||
int width = SkScalarCeilToInt(fPicture->width() * fScaleFactor);
|
||||
if (fViewport.width() > 0) {
|
||||
width = SkMin32(width, fViewport.width());
|
||||
}
|
||||
@ -148,7 +148,7 @@ int PictureRenderer::getViewWidth() {
|
||||
|
||||
int PictureRenderer::getViewHeight() {
|
||||
SkASSERT(fPicture != NULL);
|
||||
int height = fPicture->height() * fScaleFactor;
|
||||
int height = SkScalarCeilToInt(fPicture->height() * fScaleFactor);
|
||||
if (fViewport.height() > 0) {
|
||||
height = SkMin32(height, fViewport.height());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user