Skip to content

Commit

Permalink
Fixed build warnings on MSVC14 x64 in the Message Proc source.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Mulconry committed Nov 20, 2016
1 parent 2946a73 commit 745f754
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/assimp_view/MessageProc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ INT_PTR CALLBACK MessageProc(HWND hwndDlg,UINT uMsg,

SetTextColor(pcStruct->hDC,RGB(0xFF-r,0xFF-g,0xFF-b));
SetBkMode(pcStruct->hDC,TRANSPARENT);
TextOut(pcStruct->hDC,4,1,szText,strlen(szText));
TextOut(pcStruct->hDC,4,1,szText, static_cast<int>(strlen(szText)));
bDraw = true;
}
else if(IDC_LCOLOR2 == pcStruct->CtlID)
Expand Down Expand Up @@ -1568,7 +1568,7 @@ INT_PTR CALLBACK MessageProc(HWND hwndDlg,UINT uMsg,

SetTextColor(pcStruct->hDC,RGB(0xFF-r,0xFF-g,0xFF-b));
SetBkMode(pcStruct->hDC,TRANSPARENT);
TextOut(pcStruct->hDC,4,1,szText,strlen(szText));
TextOut(pcStruct->hDC,4,1,szText, static_cast<int>(strlen(szText)));
bDraw = true;
}
else if(IDC_LCOLOR3 == pcStruct->CtlID)
Expand Down Expand Up @@ -1597,7 +1597,7 @@ INT_PTR CALLBACK MessageProc(HWND hwndDlg,UINT uMsg,

SetTextColor(pcStruct->hDC,RGB(0xFF-r,0xFF-g,0xFF-b));
SetBkMode(pcStruct->hDC,TRANSPARENT);
TextOut(pcStruct->hDC,4,1,szText,strlen(szText));
TextOut(pcStruct->hDC,4,1,szText,static_cast<int>(strlen(szText)));
bDraw = true;
}
// draw the black border around the rects
Expand Down

0 comments on commit 745f754

Please sign in to comment.