Skip to content

Commit

Permalink
Disable bidirectional menu when using GDI. See rizonesoft/Notepad3#191.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Aug 10, 2018
1 parent b191463 commit 5d76921
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Notepad2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2267,6 +2267,9 @@ void MsgInitMenu(HWND hwnd, WPARAM wParam, LPARAM lParam) {
i = IDM_SET_RENDER_TECH_DEFAULT + iRenderingTechnology;
CheckMenuRadioItem(hmenu, IDM_SET_RENDER_TECH_DEFAULT, IDM_SET_RENDER_TECH_D2DDC, i, MF_BYCOMMAND);
CheckCmd(hmenu, IDM_SET_BUFFERED_DRAW, ((iRenderingTechnology == SC_TECHNOLOGY_DEFAULT)? bBufferedDrawGDI : bBufferedDrawD2D));
i = iRenderingTechnology != SC_TECHNOLOGY_DEFAULT;
EnableCmd(hmenu, IDM_SET_BIDIRECTIONAL_L2R, i);
EnableCmd(hmenu, IDM_SET_BIDIRECTIONAL_R2L, i);
i = IDM_SET_BIDIRECTIONAL_NONE + iBidirectional;
CheckMenuRadioItem(hmenu, IDM_SET_BIDIRECTIONAL_NONE, IDM_SET_BIDIRECTIONAL_R2L, i, MF_BYCOMMAND);

Expand Down

0 comments on commit 5d76921

Please sign in to comment.