Xor Magic tool: Better description; respond to "order"
This commit is contained in:
parent
9ce4ee8c50
commit
4f9112d597
131 changed files with 11952 additions and 11705 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
Tux Paint - A simple drawing program for children.
|
||||
|
||||
Copyright (c) 2013-2023 by Lukasz Dmitrowski
|
||||
Copyright (c) 2013-2024 by Lukasz Dmitrowski
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
(See COPYING.txt)
|
||||
|
||||
Last updated: Decemer 29, 2023
|
||||
Last updated: January 16, 2024
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
@ -41,6 +41,7 @@ int xor_get_tool_count(magic_api * api);
|
|||
SDL_Surface *xor_get_icon(magic_api * api, int which);
|
||||
char *xor_get_name(magic_api * api, int which);
|
||||
int xor_get_group(magic_api * api, int which);
|
||||
int xor_get_order(int which);
|
||||
char *xor_get_description(magic_api * api, int which, int mode);
|
||||
|
||||
void xor_drag(magic_api * api, int which, SDL_Surface * canvas,
|
||||
|
|
@ -104,12 +105,17 @@ int xor_get_group(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED)
|
|||
return MAGIC_TYPE_COLOR_FILTERS;
|
||||
}
|
||||
|
||||
int xor_get_order(int which ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return 800;
|
||||
}
|
||||
|
||||
char *xor_get_description(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode)
|
||||
{
|
||||
if (mode == MODE_PAINT)
|
||||
return (strdup(gettext_noop("Click and drag to draw a XOR effect")));
|
||||
return (strdup(gettext_noop("Click and drag to draw an \"Exclusive Or\" (XOR) effect")));
|
||||
else
|
||||
return (strdup(gettext_noop("Click to draw a XOR effect on the whole picture")));
|
||||
return (strdup(gettext_noop("Click to apply an \"Exclusive Or\" (XOR) effect on the whole picture")));
|
||||
}
|
||||
|
||||
static void do_xor(void *ptr, int which ATTRIBUTE_UNUSED,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue