get_description() gets mode, so tools can provide diff. instructions.
This commit is contained in:
parent
c9dfc4d1d8
commit
2e5508842f
32 changed files with 102 additions and 50 deletions
|
|
@ -73,10 +73,16 @@ char * negative_get_name(magic_api * api, int which)
|
|||
}
|
||||
|
||||
// Return our description, localized:
|
||||
char * negative_get_description(magic_api * api, int which)
|
||||
char * negative_get_description(magic_api * api, int which, int mode)
|
||||
{
|
||||
return(strdup(
|
||||
gettext_noop("Click and move the mouse around to draw a negative.")));
|
||||
if (mode == MODE_PAINT)
|
||||
return(strdup(
|
||||
gettext_noop("Click and move the mouse around to draw a negative."))); /* FIXME: This barely makes sense */
|
||||
else if (mode == MODE_FULLSCREEN)
|
||||
return(strdup(
|
||||
gettext_noop("Click to turn the image into its negative.")));
|
||||
else
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
// Callback that does the negative color effect on a circle centered around x,y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue