Fix bug: grab image negative quality isn't 100.

This commit is contained in:
Johns 2013-05-14 12:32:09 +02:00
parent 3022920b40
commit 833112eaa9
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
User johns User johns
Date: Date:
Fix bug: grab image negative quality isn't the default 100.
Support AMD VDPAU with surface size != requested size. Support AMD VDPAU with surface size != requested size.
Add cache for auto-crop buffer. Add cache for auto-crop buffer.
Fix opengl and opengl threads bugs. Fix opengl and opengl threads bugs.

View File

@ -2512,6 +2512,9 @@ uchar *cSoftHdDevice::GrabImage(int &size, bool jpeg, int quality, int width,
if (SuspendMode != NOT_SUSPENDED) { if (SuspendMode != NOT_SUSPENDED) {
return NULL; return NULL;
} }
if (quality < 0) { // caller should care, but fix it
quality = 95;
}
return::GrabImage(&size, jpeg, quality, width, height); return::GrabImage(&size, jpeg, quality, width, height);
} }