Fix a warning about comparison of integers of different signs
Bug: webrtc:9583 Change-Id: I94df0efa0a0fd5666a42dbd6997ac1b00b3844bd Reviewed-on: https://webrtc-review.googlesource.com/92040 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Oleh Prypin <oprypin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24171}
This commit is contained in:
@ -258,7 +258,7 @@ void MainWnd::OnPaint() {
|
|||||||
|
|
||||||
// Set the map mode so that the ratio will be maintained for us.
|
// Set the map mode so that the ratio will be maintained for us.
|
||||||
HDC all_dc[] = {ps.hdc, dc_mem};
|
HDC all_dc[] = {ps.hdc, dc_mem};
|
||||||
for (int i = 0; i < arraysize(all_dc); ++i) {
|
for (size_t i = 0; i < arraysize(all_dc); ++i) {
|
||||||
SetMapMode(all_dc[i], MM_ISOTROPIC);
|
SetMapMode(all_dc[i], MM_ISOTROPIC);
|
||||||
SetWindowExtEx(all_dc[i], width, height, NULL);
|
SetWindowExtEx(all_dc[i], width, height, NULL);
|
||||||
SetViewportExtEx(all_dc[i], rc.right, rc.bottom, NULL);
|
SetViewportExtEx(all_dc[i], rc.right, rc.bottom, NULL);
|
||||||
|
Reference in New Issue
Block a user