Skip to content

Commit 29936d1

Browse files
committed
finish converting gl_font to use stddef types
1 parent 31da50b commit 29936d1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/PDL/Graphics/OpenGLQ.pd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,20 @@ int pdl_3d_bitmapFontWidth(void);
117117
int pdl_3d_bitmapHeight(void);
118118
int pdl_3d_bitmapFontQuantity(void);
119119
void pdl_3d_bitmapFontBounds(int32_t *out);
120-
const GLubyte* pdl_3d_bitmapFontChar(unsigned char i);
120+
const uint8_t* pdl_3d_bitmapFontChar(unsigned char i);
121121
float pdl_3d_bitmapFontXOrig(void);
122122
float pdl_3d_bitmapFontYOrig(void);
123123
EOF
124124
Code => <<'EOF',
125125
pdl_3d_bitmapFontBounds($P(rightbound));
126126
loop (c) %{
127-
const GLubyte *d = pdl_3d_bitmapFontChar(c);
127+
const uint8_t *d = pdl_3d_bitmapFontChar(c);
128128
PDL_Indx left = !c ? 0 : $rightbound(c=>c-1)+1, right = $rightbound()+1,
129129
bytesperrow = (7 + right - left) / 8;
130130
loop (height,width=left:right) %{
131131
PDL_Indx whichcol = width - left, whichbit = 7 - (whichcol % 8),
132132
whichbyte = height * bytesperrow + (whichcol / 8);
133-
GLubyte thebyte = d[whichbyte + 1];
133+
uint8_t thebyte = d[whichbyte + 1];
134134
$texture() = (thebyte & (1 << whichbit)) ? 1 : 0;
135135
%}
136136
%}

0 commit comments

Comments
 (0)