diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 08:31:08 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 08:31:08 +0000 |
commit | e17a8a157bc8b8ba60854296e9ed07137aed8487 (patch) | |
tree | 1dc3703fb7f6cbbea0cebe35e07687be85dbf7f7 /views | |
parent | 1426f6912146386e9f4f5d298519bf3ab1be8849 (diff) | |
download | chromium_src-e17a8a157bc8b8ba60854296e9ed07137aed8487.zip chromium_src-e17a8a157bc8b8ba60854296e9ed07137aed8487.tar.gz chromium_src-e17a8a157bc8b8ba60854296e9ed07137aed8487.tar.bz2 |
Use different cursors for horizontal and vertical splits. (cursor was static local).
Review URL: http://codereview.chromium.org/149317
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20138 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/single_split_view.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/controls/single_split_view.cc b/views/controls/single_split_view.cc index 3f52052..dadf4b2 100644 --- a/views/controls/single_split_view.cc +++ b/views/controls/single_split_view.cc @@ -94,9 +94,9 @@ gfx::NativeCursor SingleSplitView::GetCursorForPoint(Event::EventType event_type int x, int y) { if (IsPointInDivider(x, y)) { #if defined(OS_WIN) - static HCURSOR resize_cursor = LoadCursor(NULL, - is_horizontal_ ? IDC_SIZEWE : IDC_SIZENS); - return resize_cursor; + static HCURSOR we_resize_cursor = LoadCursor(NULL, IDC_SIZEWE); + static HCURSOR ns_resize_cursor = LoadCursor(NULL, IDC_SIZENS); + return is_horizontal_ ? we_resize_cursor : ns_resize_cursor; #elif defined(OS_LINUX) return gdk_cursor_new(is_horizontal_ ? GDK_SB_H_DOUBLE_ARROW : |