Skip to content

Commit 8de0a9b

Browse files
committed
Update dependencies
1 parent 9348c32 commit 8de0a9b

File tree

7 files changed

+26
-12
lines changed

7 files changed

+26
-12
lines changed

raylib/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ raylib is a simple and easy-to-use library to enjoy videogames programming.
44

55
https://www.raylib.com/
66

7-
Implemented APIs (612)
7+
Implemented APIs (613)
88
----------------
99

1010
| Name | Description |
@@ -109,7 +109,8 @@ Implemented APIs (612)
109109
| sub DrawRectanglePro(rec, origin, rotation, color) | Draw a color-filled rectangle with pro parameters |
110110
| sub DrawRectangleRec(rec, color) | Draw a color-filled rectangle |
111111
| sub DrawRectangleRounded(rec, roundness, segments, color) | Draw rectangle with rounded edges |
112-
| sub DrawRectangleRoundedLines(rec, roundness, segments, lineThick, color) | Draw rectangle with rounded edges outline |
112+
| sub DrawRectangleRoundedLines(rec, roundness, segments, color) | Draw rectangle lines with rounded edges |
113+
| sub DrawRectangleRoundedLinesEx(rec, roundness, segments, lineThick, color) | Draw rectangle with rounded edges outline |
113114
| sub DrawRectangleV(position, size, color) | Draw a color-filled rectangle (Vector version) |
114115
| sub DrawRing(center, innerRadius, outerRadius, startAngle, endAngle, segments, color) | Draw ring |
115116
| sub DrawRingLines(center, innerRadius, outerRadius, startAngle, endAngle, segments, color) | Draw ring outline |

raylib/proc-def.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
{4, 4, "DRAWRECTANGLEPRO", cmd_drawrectanglepro},
6565
{2, 2, "DRAWRECTANGLEREC", cmd_drawrectanglerec},
6666
{4, 4, "DRAWRECTANGLEROUNDED", cmd_drawrectanglerounded},
67-
{5, 5, "DRAWRECTANGLEROUNDEDLINES", cmd_drawrectangleroundedlines},
67+
{4, 4, "DRAWRECTANGLEROUNDEDLINES", cmd_drawrectangleroundedlines},
68+
{5, 5, "DRAWRECTANGLEROUNDEDLINESEX", cmd_drawrectangleroundedlinesex},
6869
{3, 3, "DRAWRECTANGLEV", cmd_drawrectanglev},
6970
{7, 7, "DRAWRING", cmd_drawring},
7071
{7, 7, "DRAWRINGLINES", cmd_drawringlines},

raylib/proc.h

+14-2
Original file line numberDiff line numberDiff line change
@@ -820,15 +820,27 @@ static int cmd_drawrectanglerounded(int argc, slib_par_t *params, var_t *retval)
820820
}
821821

822822
//
823-
// Draw rectangle with rounded edges outline
823+
// Draw rectangle lines with rounded edges
824824
//
825825
static int cmd_drawrectangleroundedlines(int argc, slib_par_t *params, var_t *retval) {
826+
auto rec = get_param_rect(argc, params, 0);
827+
auto roundness = get_param_num(argc, params, 1, 0);
828+
auto segments = get_param_int(argc, params, 2, 0);
829+
auto color = get_param_color(argc, params, 3);
830+
DrawRectangleRoundedLines(rec, roundness, segments, color);
831+
return 1;
832+
}
833+
834+
//
835+
// Draw rectangle with rounded edges outline
836+
//
837+
static int cmd_drawrectangleroundedlinesex(int argc, slib_par_t *params, var_t *retval) {
826838
auto rec = get_param_rect(argc, params, 0);
827839
auto roundness = get_param_num(argc, params, 1, 0);
828840
auto segments = get_param_int(argc, params, 2, 0);
829841
auto lineThick = get_param_num(argc, params, 3, 0);
830842
auto color = get_param_color(argc, params, 4);
831-
DrawRectangleRoundedLines(rec, roundness, segments, lineThick, color);
843+
DrawRectangleRoundedLinesEx(rec, roundness, segments, lineThick, color);
832844
return 1;
833845
}
834846

websocket/main.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static void send(mg_connection *conn, const char *msg, int len) {
7878
}
7979

8080
static void server_http_msg(mg_connection *conn, mg_http_message *message, Session *session) {
81-
if (mg_http_match_uri(message, "/")) {
81+
if (mg_match(message->uri, mg_str("/"), NULL)) {
8282
mg_ws_upgrade(conn, message, NULL);
8383
session->_conns.push_back(new Session(conn));
8484
} else {
@@ -103,7 +103,7 @@ static void server_send(Session *session, const char *buf, size_t len, int id) {
103103
static void server_ws_msg(mg_connection *conn, mg_ws_message *message) {
104104
Session *session = sessions[conn->id];
105105
if (session != nullptr) {
106-
session->_recv.append((char *)message->data.ptr, message->data.len);
106+
session->_recv.append((char *)message->data.buf, message->data.len);
107107
}
108108
mg_iobuf_del(&conn->recv, 0, conn->recv.len);
109109
}
@@ -164,9 +164,9 @@ static void client_ws_open(mg_connection *conn, Session *session) {
164164
static void client_ws_msg(mg_connection *conn, mg_ws_message *message, Session *session) {
165165
if (message->data.len && session->_state == kClient) {
166166
if (!session->_recv.empty()) {
167-
session->_recv.insert(0, (char *)message->data.ptr, message->data.len);
167+
session->_recv.insert(0, (char *)message->data.buf, message->data.len);
168168
} else {
169-
session->_recv.append((char *)message->data.ptr, message->data.len);
169+
session->_recv.append((char *)message->data.buf, message->data.len);
170170
}
171171
}
172172
}

websocket/mongoose

Submodule mongoose updated 252 files

0 commit comments

Comments
 (0)