Changeset 90788 in webkit
- Timestamp:
- Jul 11, 2011 3:43:00 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r90784 r90788 1 2011-07-11 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Daniel Bates. 4 5 [GTK] Transition to Mozilla named cursors have incorrect hotspot and rendering 6 https://bugs.webkit.org/show_bug.cgi?id=62752 7 8 Instead of offsetting the cursor blit by the hotspot, just pass the hotspot 9 arguments to the GdkCursor constructor. 10 11 No new tests. This is covered by manual-tests/cursor.html. 12 13 * platform/gtk/CursorGtk.cpp: 14 (WebCore::createNamedCursor): 15 1 16 2011-07-11 Yi Shen <yi.4.shen@nokia.com> 2 17 -
trunk/Source/WebCore/platform/gtk/CursorGtk.cpp
r75009 r90788 53 53 RefPtr<cairo_t> cr = adoptRef(cairo_create(surface.get())); 54 54 55 cairo_set_source_surface(cr.get(), source.get(), cursor.hot_x, cursor.hot_y);56 cairo_mask_surface(cr.get(), mask.get(), cursor.hot_x, cursor.hot_y);55 cairo_set_source_surface(cr.get(), source.get(), 0, 0); 56 cairo_mask_surface(cr.get(), mask.get(), 0, 0); 57 57 58 58 GRefPtr<GdkPixbuf> pixbuf = adoptGRef(gdk_pixbuf_get_from_surface(surface.get(), 0, 0, 32, 32)); 59 return adoptGRef(gdk_cursor_new_from_pixbuf(gdk_display_get_default(), pixbuf.get(), 0, 0));59 return adoptGRef(gdk_cursor_new_from_pixbuf(gdk_display_get_default(), pixbuf.get(), cursor.hot_x, cursor.hot_y)); 60 60 } 61 61
Note: See TracChangeset
for help on using the changeset viewer.