Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: ui/gfx/gdi_util.cc

Issue 1513043002: clang/win: Let remaining chromium_code targets build with -Wextra. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/ime/remote_input_method_win_unittest.cc ('k') | ui/gfx/icon_util_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/gdi_util.h" 5 #include "ui/gfx/gdi_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 rv = ::StretchDIBits(hdc, 126 rv = ::StretchDIBits(hdc,
127 dest_x, dest_h + dest_y - 1, dest_w, -dest_h, 127 dest_x, dest_h + dest_y - 1, dest_w, -dest_h,
128 src_x, bitmap_h - src_y + 1, src_w, -src_h, 128 src_x, bitmap_h - src_y + 1, src_w, -src_h,
129 pixels, bitmap_info, DIB_RGB_COLORS, SRCCOPY); 129 pixels, bitmap_info, DIB_RGB_COLORS, SRCCOPY);
130 } else { 130 } else {
131 rv = ::StretchDIBits(hdc, 131 rv = ::StretchDIBits(hdc,
132 dest_x, dest_y, dest_w, dest_h, 132 dest_x, dest_y, dest_w, dest_h,
133 src_x, bottom_up_src_y, src_w, src_h, 133 src_x, bottom_up_src_y, src_w, src_h,
134 pixels, bitmap_info, DIB_RGB_COLORS, SRCCOPY); 134 pixels, bitmap_info, DIB_RGB_COLORS, SRCCOPY);
135 } 135 }
136 DCHECK(rv != GDI_ERROR); 136 DCHECK(rv != static_cast<int>(GDI_ERROR));
137 } 137 }
138 138
139 } // namespace gfx 139 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/base/ime/remote_input_method_win_unittest.cc ('k') | ui/gfx/icon_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698