update some comments in preview lib

remotes/origin/stable6
Georg Ehrke 2013-07-10 18:01:04 +07:00
parent 7091d7a6d2
commit f14b0fa6e0
1 changed files with 2 additions and 9 deletions

@ -348,10 +348,6 @@ class Preview {
/**
* @brief return a preview of a file
* @param $file The path to the file where you want a thumbnail from
* @param $maxX The maximum X size of the thumbnail. It can be smaller depending on the shape of the image
* @param $maxY The maximum Y size of the thumbnail. It can be smaller depending on the shape of the image
* @param $scaleup Scale smaller images up to the thumbnail size or not. Might look ugly
* @return image
*/
public function getPreview() {
@ -419,10 +415,6 @@ class Preview {
/**
* @brief show preview
* @param $file The path to the file where you want a thumbnail from
* @param $maxX The maximum X size of the thumbnail. It can be smaller depending on the shape of the image
* @param $maxY The maximum Y size of the thumbnail. It can be smaller depending on the shape of the image
* @param $scaleup Scale smaller images up to the thumbnail size or not. Might look ugly
* @return void
*/
public function showPreview() {
@ -431,6 +423,7 @@ class Preview {
$this->getPreview();
}
$this->preview->show();
return;
}
/**
@ -486,7 +479,7 @@ class Preview {
$image->preciseResize($newXsize, $newYsize);
if($newXsize == $x && $newYsize === $y) {
if($newXsize === $x && $newYsize === $y) {
$this->preview = $image;
return;
}