When sending screenshots in an unknown format (txt, gif, etc.) the user is warned

and the screenshot is not added
This commit is contained in:
Jonathan Ernst
2005-02-24 04:48:42 +00:00
committed by WineHQ
parent 3b4eb09e1f
commit db7ed9bc5a
2 changed files with 31 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ class Image {
/**
* Constructor:
* $file is the full path to the image. $this->is_loaded()
* $file is the full path to the image. $this->isLoaded()
* should really be checked after making a new object.
*/
function Image($sRelativePath)
@@ -58,12 +58,12 @@ class Image {
}
/**
* is_loaded()
* isLoaded()
* This function should always be checked after loading a file
* with the constructor. Rteturns true if the image has been
* succesfully loaded.
*/
function is_loaded()
function isLoaded()
{
if($this->width > 0 AND $this->height > 0)
return true;