mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-23 16:43:58 +08:00
remove checking of output rectangle for DrawTextEx2
This commit is contained in:
@@ -233,12 +233,14 @@ int DrawTextEx2 (HDC hdc, const char* pText, int nCount,
|
||||
coor_LP2SP(pdc, &rcDraw.right, &rcDraw.bottom);
|
||||
NormalizeRect (&rcDraw);
|
||||
|
||||
/* If output rect is too small, we shouldn't output any text.*/
|
||||
#if 0
|
||||
/* If output rect is zero, we shouldn't output any text.*/
|
||||
if (RECTW(rcDraw) < pdc->pLogFont->size
|
||||
&& RECTH(rcDraw) < pdc->pLogFont->size) {
|
||||
&& RECTH(rcDraw) < pdc->pLogFont->size) {
|
||||
_WRN_PRINTF ("Output rect is too small, we won't output any text.");
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* nFormat surpport follow. */
|
||||
if ((nFormat & DT_CALCRECT) || firstline){
|
||||
|
||||
Reference in New Issue
Block a user