diff options
| author | nyamatongwe <devnull@localhost> | 2002-09-15 02:25:11 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2002-09-15 02:25:11 +0000 | 
| commit | 47b2c828b465938401af9018c33a1e504b3a9df9 (patch) | |
| tree | c63da91ad4b3dd29a59ef219a0f486014d0ff741 | |
| parent | efc290f18ba1bce6827f866554148bad0efff1ae (diff) | |
| download | scintilla-mirror-47b2c828b465938401af9018c33a1e504b3a9df9.tar.gz | |
Limiting the number of characters to ExtTextOut to be less than 65536
as there appears to be a GDI 16 bit limitation.
| -rw-r--r-- | win32/PlatWin.cxx | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 8b7373cc5..3bfd923ae 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -501,6 +501,9 @@ void SurfaceImpl::DrawTextNoClip(PRectangle rc, Font &font_, int ybase, const ch  		tbuf[tlen] = L'\0';  		::ExtTextOutW(hdc, rc.left, ybase, ETO_OPAQUE, &rcw, tbuf, tlen, NULL);  	} else { +		// There appears to be a 16 bit string length limit in GDI +		if (len > 65535)	 +			len = 65535;  		::ExtTextOut(hdc, rc.left, ybase, ETO_OPAQUE, &rcw, s, len, NULL);  	}  } @@ -517,6 +520,9 @@ void SurfaceImpl::DrawTextClipped(PRectangle rc, Font &font_, int ybase, const c  		tbuf[tlen] = L'\0';  		::ExtTextOutW(hdc, rc.left, ybase, ETO_OPAQUE | ETO_CLIPPED, &rcw, tbuf, tlen, NULL);  	} else { +		// There appears to be a 16 bit string length limit in GDI +		if (len > 65535)	 +			len = 65535;  		::ExtTextOut(hdc, rc.left, ybase, ETO_OPAQUE | ETO_CLIPPED, &rcw, s, len, NULL);  	}  } | 
