Ran indent
This commit is contained in:
parent
79d5cb5cea
commit
4a79060f26
2 changed files with 40 additions and 32 deletions
|
|
@ -259,7 +259,8 @@ polyfill_click(magic_api * api, int which ATTRIBUTE_UNUSED, int mode ATTRIBUTE_U
|
||||||
|
|
||||||
void
|
void
|
||||||
polyfill_drag(magic_api * api, int which ATTRIBUTE_UNUSED,
|
polyfill_drag(magic_api * api, int which ATTRIBUTE_UNUSED,
|
||||||
SDL_Surface * canvas, SDL_Surface * snapshot ATTRIBUTE_UNUSED, int old_x ATTRIBUTE_UNUSED, int old_y ATTRIBUTE_UNUSED, int x, int y, SDL_Rect * update_rect)
|
SDL_Surface * canvas, SDL_Surface * snapshot ATTRIBUTE_UNUSED, int old_x ATTRIBUTE_UNUSED,
|
||||||
|
int old_y ATTRIBUTE_UNUSED, int x, int y, SDL_Rect * update_rect)
|
||||||
{
|
{
|
||||||
polyfill_dragged = 1;
|
polyfill_dragged = 1;
|
||||||
|
|
||||||
|
|
@ -331,7 +332,8 @@ void polyfill_draw_preview(magic_api * api, SDL_Surface * canvas, int show_handl
|
||||||
|
|
||||||
void
|
void
|
||||||
polyfill_release(magic_api * api, int which ATTRIBUTE_UNUSED,
|
polyfill_release(magic_api * api, int which ATTRIBUTE_UNUSED,
|
||||||
SDL_Surface * canvas, SDL_Surface * snapshot ATTRIBUTE_UNUSED, int x, int y, SDL_Rect * update_rect ATTRIBUTE_UNUSED)
|
SDL_Surface * canvas, SDL_Surface * snapshot ATTRIBUTE_UNUSED, int x, int y,
|
||||||
|
SDL_Rect * update_rect ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
@ -442,8 +444,8 @@ polyfill_release(magic_api * api, int which ATTRIBUTE_UNUSED,
|
||||||
update_rect->h = canvas->h;
|
update_rect->h = canvas->h;
|
||||||
}
|
}
|
||||||
|
|
||||||
void polyfill_set_color(magic_api * api, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas, SDL_Surface * snapshot ATTRIBUTE_UNUSED, Uint8 r, Uint8 g,
|
void polyfill_set_color(magic_api * api, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas,
|
||||||
Uint8 b, SDL_Rect * update_rect)
|
SDL_Surface * snapshot ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect)
|
||||||
{
|
{
|
||||||
polyfill_color = SDL_MapRGB(canvas->format, r, g, b);
|
polyfill_color = SDL_MapRGB(canvas->format, r, g, b);
|
||||||
|
|
||||||
|
|
@ -457,13 +459,15 @@ void polyfill_set_color(magic_api * api, int which ATTRIBUTE_UNUSED, SDL_Surface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void polyfill_set_size(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, SDL_Surface * snapshot ATTRIBUTE_UNUSED, Uint8 size ATTRIBUTE_UNUSED,
|
void polyfill_set_size(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode ATTRIBUTE_UNUSED,
|
||||||
SDL_Rect * update_rect ATTRIBUTE_UNUSED)
|
SDL_Surface * canvas ATTRIBUTE_UNUSED, SDL_Surface * snapshot ATTRIBUTE_UNUSED,
|
||||||
|
Uint8 size ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void polyfill_line_callback(void *pointer ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas, SDL_Surface * snapshot ATTRIBUTE_UNUSED, int x, int y)
|
void polyfill_line_callback(void *pointer ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas,
|
||||||
|
SDL_Surface * snapshot ATTRIBUTE_UNUSED, int x, int y)
|
||||||
{
|
{
|
||||||
SDL_Rect dest;
|
SDL_Rect dest;
|
||||||
|
|
||||||
|
|
@ -476,7 +480,8 @@ void polyfill_line_callback(void *pointer ATTRIBUTE_UNUSED, int which ATTRIBUTE_
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void polyfill_switchin(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode ATTRIBUTE_UNUSED, SDL_Surface * canvas)
|
void polyfill_switchin(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode ATTRIBUTE_UNUSED,
|
||||||
|
SDL_Surface * canvas)
|
||||||
{
|
{
|
||||||
polyfill_color_red = SDL_MapRGB(canvas->format, 255, 0, 0);
|
polyfill_color_red = SDL_MapRGB(canvas->format, 255, 0, 0);
|
||||||
polyfill_color_green = SDL_MapRGB(canvas->format, 0, 255, 0);
|
polyfill_color_green = SDL_MapRGB(canvas->format, 0, 255, 0);
|
||||||
|
|
@ -496,7 +501,8 @@ void polyfill_switchin(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNU
|
||||||
polyfill_active = 1;
|
polyfill_active = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void polyfill_switchout(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode ATTRIBUTE_UNUSED, SDL_Surface * canvas)
|
void polyfill_switchout(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode ATTRIBUTE_UNUSED,
|
||||||
|
SDL_Surface * canvas)
|
||||||
{
|
{
|
||||||
polyfill_num_pts = 0;
|
polyfill_num_pts = 0;
|
||||||
polyfill_editing = MAX_PTS;
|
polyfill_editing = MAX_PTS;
|
||||||
|
|
|
||||||
|
|
@ -21851,8 +21851,10 @@ static void load_magic_plugins(void)
|
||||||
else
|
else
|
||||||
magics[group][idx].order = (want_group * 1000000) + want_order;
|
magics[group][idx].order = (want_group * 1000000) + want_order;
|
||||||
|
|
||||||
for (j = 0; j < num_magics[group]; j++) {
|
for (j = 0; j < num_magics[group]; j++)
|
||||||
if (magics[group][j].order == magics[group][idx].order) {
|
{
|
||||||
|
if (magics[group][j].order == magics[group][idx].order)
|
||||||
|
{
|
||||||
fprintf(stderr, "Warning: In group %d, tool %d has the same order (%d) as tool %d\n",
|
fprintf(stderr, "Warning: In group %d, tool %d has the same order (%d) as tool %d\n",
|
||||||
group, idx, magics[group][j].order, j);
|
group, idx, magics[group][j].order, j);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue