|
|
Chromium Code Reviews
DescriptionBug Fix: Cursor Stretched During Tab Capturing On Windows
On Windows 10, the mouse cursor is vertically stretched during
screen capturing.
This CL fixes the bug.
BUG=655198
Committed: https://crrev.com/b5f188496d88bbef4ec99ee84742f61380f8516e
Cr-Commit-Position: refs/heads/master@{#426589}
Patch Set 1 #
Total comments: 3
Patch Set 2 : nit #Messages
Total messages: 20 (11 generated)
The CQ bit was checked by qiangchen@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Bug Fix: Icon Stretched During Tab Capturing On Windows BUG= ========== to ========== Bug Fix: Cursor Stretched During Tab Capturing On Windows On Windows 10, the mouse cursor is vertically stretched during screen capturing. This CL fixes the bug. BUG=655198 ==========
qiangchen@chromium.org changed reviewers: + danakj@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Can you take a look? Thanks.
qiangchen@chromium.org changed reviewers: + msw@chromium.org - danakj@chromium.org
Can you take a look at this CL?
Good catch; lgtm with a nit. https://codereview.chromium.org/2423293003/diff/1/ui/gfx/icon_util.cc File ui/gfx/icon_util.cc (right): https://codereview.chromium.org/2423293003/diff/1/ui/gfx/icon_util.cc#newcode317 ui/gfx/icon_util.cc:317: const int height = (icon_info.hbmColor == NULL) ? bitmap_info.bmHeight / 2 nit: just check: "icon_info.hbmColor ?" otherwise, use nullptr. optionally: const int height = bitmap_info.bmHeight / (icon_info.hbmColor ? 2 : 1);
The CQ bit was checked by qiangchen@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from msw@chromium.org Link to the patchset: https://codereview.chromium.org/2423293003/#ps20001 (title: "nit")
https://codereview.chromium.org/2423293003/diff/1/ui/gfx/icon_util.cc File ui/gfx/icon_util.cc (right): https://codereview.chromium.org/2423293003/diff/1/ui/gfx/icon_util.cc#newcode317 ui/gfx/icon_util.cc:317: const int height = (icon_info.hbmColor == NULL) ? bitmap_info.bmHeight / 2 On 2016/10/20 18:54:51, msw wrote: > nit: just check: "icon_info.hbmColor ?" otherwise, use nullptr. optionally: > const int height = bitmap_info.bmHeight / (icon_info.hbmColor ? 2 : 1); Done.
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
still lgtm https://chromiumcodereview.appspot.com/2423293003/diff/1/ui/gfx/icon_util.cc File ui/gfx/icon_util.cc (right): https://chromiumcodereview.appspot.com/2423293003/diff/1/ui/gfx/icon_util.cc#... ui/gfx/icon_util.cc:317: const int height = (icon_info.hbmColor == NULL) ? bitmap_info.bmHeight / 2 On 2016/10/20 20:03:33, qiangchenC wrote: > On 2016/10/20 18:54:51, msw wrote: > > nit: just check: "icon_info.hbmColor ?" otherwise, use nullptr. optionally: > > const int height = bitmap_info.bmHeight / (icon_info.hbmColor ? 2 : 1); > > Done. Thanks for catching and fixing the inversion error in my suggested ternary!
Message was sent while issue was closed.
Description was changed from ========== Bug Fix: Cursor Stretched During Tab Capturing On Windows On Windows 10, the mouse cursor is vertically stretched during screen capturing. This CL fixes the bug. BUG=655198 ========== to ========== Bug Fix: Cursor Stretched During Tab Capturing On Windows On Windows 10, the mouse cursor is vertically stretched during screen capturing. This CL fixes the bug. BUG=655198 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Bug Fix: Cursor Stretched During Tab Capturing On Windows On Windows 10, the mouse cursor is vertically stretched during screen capturing. This CL fixes the bug. BUG=655198 ========== to ========== Bug Fix: Cursor Stretched During Tab Capturing On Windows On Windows 10, the mouse cursor is vertically stretched during screen capturing. This CL fixes the bug. BUG=655198 Committed: https://crrev.com/b5f188496d88bbef4ec99ee84742f61380f8516e Cr-Commit-Position: refs/heads/master@{#426589} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/b5f188496d88bbef4ec99ee84742f61380f8516e Cr-Commit-Position: refs/heads/master@{#426589} |
