remove DC_ATTR_BIDI_FIRSTCH_TYPE

This commit is contained in:
Vincent Wei
2018-11-18 13:58:49 +08:00
parent e9e7c43029
commit 98baad2755
2 changed files with 7 additions and 6 deletions

View File

@@ -2062,10 +2062,8 @@ MG_EXPORT void GUIAPI DeleteSecondaryDC (HWND hwnd);
* mode of a DC.
* - DC_ATTR_TEXT_ALIGN\n
* Text-alignment flags of a DC.
* - DC_ATTR_BIDI_ENABLED\n
* Is BIDI enabled.
* - DC_ATTR_BIDI_FIRSTCH_TYPE\n
* The first character type, on of BIDI_CHAR_TYPE_INIT, BIDI_CHAR_TYPE_LTR, or BIDI_CHAR_TYPE_RTL.
* - DC_ATTR_BIDI_FLAGS\n
* BIDI flags.
* \return The attribute value.
*
* \sa SetDCAttr
@@ -7013,7 +7011,7 @@ MG_EXPORT int GUIAPI GetTabbedTextExtent (HDC hdc,
GetDCAttr (hdc, DC_ATTR_BIDI_FLAGS)
#define SetBIDIFlags(hdc, bidi_flags) \
SetDCAttr (hdc, DC_ATTR_BIDI_FLAGS, (DWORD)bidi)
SetDCAttr (hdc, DC_ATTR_BIDI_FLAGS, (DWORD)bidi_flags)
/**
* \fn int GUIAPI TextOutLen (HDC hdc, int x, int y, \

View File

@@ -1827,7 +1827,10 @@ static void dc_InitMemDCFrom (PDC pdc, const PDC pdc_ref)
memset (pdc->gray_pixels, 0, sizeof (pdc->gray_pixels));
memset (pdc->filter_pixels, 0, sizeof (pdc->filter_pixels));
/* copy attributes from reference DC */
/* copy attributes from reference DC
* gal_pixel bkcolor, pencolor, brushcolor, textcolor;
* int bkmode, tabstop, cExtra, alExtra, blExtra, mapmode, ta_flags, bidi_flags;
*/
memcpy (&pdc->bkcolor, &pdc_ref->bkcolor,
sizeof (gal_pixel)*4 + sizeof (int)*8);
#ifdef _MGHAVE_ADV_2DAPI