Skip to content

Commit 48f1cdb

Browse files
committed
[core] Fix typo in GUI_SurfaceBoxRounded
1 parent 2d6a54b commit 48f1cdb

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

applications/main/modules/module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static GUI_Surface *CreateHighlight(GUI_Surface *src, int w, int h) {
5959
sdl->format->Bmask,
6060
sdl->format->Amask);
6161

62-
GUI_SurfaceBoxRouded(s, 0, 0, w - 1, h - 1, 10, GUI_SurfaceMapRGBA(s, 212, 241, 21, 220));
62+
GUI_SurfaceBoxRounded(s, 0, 0, w - 1, h - 1, 10, GUI_SurfaceMapRGBA(s, 212, 241, 21, 220));
6363
GUI_SurfaceRectangleRounded(s, 1, 1, w - 2, h - 2, 10, GUI_SurfaceMapRGBA(s, 212, 241, 41, 255));
6464

6565
dst.x = dst.y = ICON_HIGHLIGHT_PADDING / 2;

exports.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ GUI_SurfaceThickLine
936936
GUI_SurfaceRectangle
937937
GUI_SurfaceRectangleRounded
938938
GUI_SurfaceBox
939-
GUI_SurfaceBoxRouded
939+
GUI_SurfaceBoxRounded
940940
GUI_SurfaceCircle
941941
GUI_SurfaceCircleAA
942942
GUI_SurfaceCircleFill

include/SDL/SDL_gui.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class GUI_Surface : public GUI_Object
134134
void Rectangle(Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 c);
135135
void RectangleRounded(Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 c);
136136
void Box(Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 c);
137-
void BoxRouded(Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 c);
137+
void BoxRounded(Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 c);
138138
void Circle(Sint16 x, Sint16 y, Sint16 rad, Uint32 c);
139139
void CircleAA(Sint16 x, Sint16 y, Sint16 rad, Uint32 c);
140140
void CircleFill(Sint16 x, Sint16 y, Sint16 rad, Uint32 c);
@@ -973,7 +973,7 @@ void GUI_SurfaceThickLine(GUI_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2,
973973
void GUI_SurfaceRectangle(GUI_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 c);
974974
void GUI_SurfaceRectangleRounded(GUI_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 c);
975975
void GUI_SurfaceBox(GUI_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 c);
976-
void GUI_SurfaceBoxRouded(GUI_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 c);
976+
void GUI_SurfaceBoxRounded(GUI_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 c);
977977
void GUI_SurfaceCircle(GUI_Surface *surface, Sint16 x, Sint16 y, Sint16 rad, Uint32 c);
978978
void GUI_SurfaceCircleAA(GUI_Surface *surface, Sint16 x, Sint16 y, Sint16 rad, Uint32 c);
979979
void GUI_SurfaceCircleFill(GUI_Surface *surface, Sint16 x, Sint16 y, Sint16 rad, Uint32 c);

lib/SDL_gui/Surface.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void GUI_Surface::Box(Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 c)
130130
boxColor(surface, x1, y1, x2, y2, __builtin_bswap32(c));
131131
}
132132

133-
void GUI_Surface::BoxRouded(Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 c)
133+
void GUI_Surface::BoxRounded(Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 c)
134134
{
135135
roundedBoxColor(surface, x1, y1, x2, y2, rad, __builtin_bswap32(c));
136136
}
@@ -430,9 +430,9 @@ void GUI_SurfaceBox(GUI_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint1
430430
surface->Box(x1, y1, x2, y2, c);
431431
}
432432

433-
void GUI_SurfaceBoxRouded(GUI_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 c)
433+
void GUI_SurfaceBoxRounded(GUI_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 c)
434434
{
435-
surface->BoxRouded(x1, y1, x2, y2, rad, c);
435+
surface->BoxRounded(x1, y1, x2, y2, rad, c);
436436
}
437437

438438
void GUI_SurfaceCircle(GUI_Surface *surface, Sint16 x, Sint16 y, Sint16 rad, Uint32 c)

0 commit comments

Comments
 (0)