Skip to content

Commit 876c254

Browse files
committed
* Crt: Update VidSetFont prototype
1 parent ca7bd1a commit 876c254

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crt/include/nanoshell/graphics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ void VidFillScreen(unsigned color);
1717
void VidDrawVLine(unsigned color, int top, int bottom, int x);
1818
void VidDrawHLine(unsigned color, int left, int right, int y);
1919
void VidDrawLine(unsigned p, int x1, int y1, int x2, int y2);
20-
void VidSetFont(unsigned fontType);
2120
void VidPlotChar (char c, unsigned ox, unsigned oy, unsigned colorFg, unsigned colorBg /*=0xFFFFFFFF*/);
2221
void VidBlitImage(Image* pImage, int x, int y);
2322
void VidBlitImageResize(Image* pImage, int x, int y, int w, int h);
@@ -39,6 +38,7 @@ void RenderIconForceSizeOutline(int type, int x, int y, int size, uint32_t color
3938
void VidSetClipRectEx(Rectangle* pOutRect, Rectangle* pRect);
4039
void VidTextOutInternalEx(const char* pText, unsigned ox, unsigned oy, unsigned colorFg, unsigned colorBg, bool doNotActuallyDraw, int* widthx, int* heightx, int limit);
4140
int WrapText(char* pTextBufOut, size_t sTextBufOut, const char* pText, int xWidth);
41+
unsigned VidSetFont(unsigned fontType);
4242

4343
bool RectangleContains(Rectangle *r, Point *p);
4444
bool RectangleOverlap (Rectangle *r1, Rectangle *r2);

crt/src/calldefs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ CALL_END
3030
CALL (VidDrawLine, VID_DRAW_LINE, void, unsigned p, int x1, int y1, int x2, int y2)
3131
SARGS(p,x1,y1,x2,y2)
3232
CALL_END
33-
CALL (VidSetFont, VID_SET_FONT, void, unsigned fontType)
34-
SARGS(fontType)
33+
CALL (VidSetFont, VID_SET_FONT, unsigned, unsigned fontType)
34+
RARGS(fontType)
3535
CALL_END
3636
CALL (VidPlotChar, VID_PLOT_CHAR, void, char c,unsigned ox,unsigned oy,unsigned colorFg,unsigned colorBg)
3737
SARGS(c,ox,oy,colorFg,colorBg)

0 commit comments

Comments
 (0)