File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,20 +117,20 @@ int pdl_3d_bitmapFontWidth(void);
117117int pdl_3d_bitmapHeight(void);
118118int pdl_3d_bitmapFontQuantity(void);
119119void 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);
121121float pdl_3d_bitmapFontXOrig(void);
122122float pdl_3d_bitmapFontYOrig(void);
123123EOF
124124 Code => <<'EOF',
125125pdl_3d_bitmapFontBounds($P(rightbound));
126126loop (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%}
You can’t perform that action at this time.
0 commit comments