Skip to content

Commit

Permalink
disable mactype for DCs with color lower than 24bit.
Browse files Browse the repository at this point in the history
This walkaround the issue #440.
I can't call it a solution, but most programs today runs under 24bit or 32bit graphic mode, so it should not matter much. And those 16bit programs, they should be able to stay in the degraded cleartype mode safe enough.
  • Loading branch information
snowie2000 committed Oct 9, 2018
1 parent 139c857 commit 211b267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion override.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ ETO_TRY();
BITMAP bm;
HBITMAP hbmpSrc = (HBITMAP)GetCurrentObject(hdc, OBJ_BITMAP);

if(hbmpSrc && ORIG_GetObjectW(hbmpSrc, sizeof(BITMAP), &bm) && bm.bmBitsPixel == 1) {
if(hbmpSrc && ORIG_GetObjectW(hbmpSrc, sizeof(BITMAP), &bm) && bm.bmBitsPixel <= 16) {
//ラヤカッノ靹テホェオ・ノォ葷ネセキスハス
ETO_THROW(ETOE_MONO); //イサ葷ネセオ・ノォホトラヨ
//params.ftOptions |= FTO_MONO;
Expand Down

0 comments on commit 211b267

Please sign in to comment.