@ -2447,7 +2447,7 @@ void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opa
}
}
void ImFontAtlasBuildRender1 bppRectFromString ( ImFontAtlas * atlas , int x , int y , int w , int h , const char * in_str , char in_marker_char , unsigned char in_marker_pixel_value )
void ImFontAtlasBuildRender8 bppRectFromString ( ImFontAtlas * atlas , int x , int y , int w , int h , const char * in_str , char in_marker_char , unsigned char in_marker_pixel_value )
{
IM_ASSERT ( x > = 0 & & x + w < = atlas - > TexWidth ) ;
IM_ASSERT ( y > = 0 & & y + h < = atlas - > TexHeight ) ;
@ -2469,8 +2469,8 @@ static void ImFontAtlasBuildRenderDefaultTexData(ImFontAtlas* atlas)
IM_ASSERT ( r - > Width = = FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1 & & r - > Height = = FONT_ATLAS_DEFAULT_TEX_DATA_H ) ;
const int x_for_white = r - > X ;
const int x_for_black = r - > X + FONT_ATLAS_DEFAULT_TEX_DATA_W + 1 ;
ImFontAtlasBuildRender1 bppRectFromString ( atlas , x_for_white , r - > Y , FONT_ATLAS_DEFAULT_TEX_DATA_W , FONT_ATLAS_DEFAULT_TEX_DATA_H , FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS , ' . ' , 0xFF ) ;
ImFontAtlasBuildRender1 bppRectFromString ( atlas , x_for_black , r - > Y , FONT_ATLAS_DEFAULT_TEX_DATA_W , FONT_ATLAS_DEFAULT_TEX_DATA_H , FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS , ' X ' , 0xFF ) ;
ImFontAtlasBuildRender8 bppRectFromString ( atlas , x_for_white , r - > Y , FONT_ATLAS_DEFAULT_TEX_DATA_W , FONT_ATLAS_DEFAULT_TEX_DATA_H , FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS , ' . ' , 0xFF ) ;
ImFontAtlasBuildRender8 bppRectFromString ( atlas , x_for_black , r - > Y , FONT_ATLAS_DEFAULT_TEX_DATA_W , FONT_ATLAS_DEFAULT_TEX_DATA_H , FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS , ' X ' , 0xFF ) ;
}
else
{