Changeset View
Changeset View
Standalone View
Standalone View
pointer_input.cpp
Show First 20 Lines • Show All 1057 Lines • ▼ Show 20 Line(s) | 1031 | { | |||
---|---|---|---|---|---|
1058 | if (!buffer) { | 1058 | if (!buffer) { | ||
1059 | if (needsEmit) { | 1059 | if (needsEmit) { | ||
1060 | emit changed(); | 1060 | emit changed(); | ||
1061 | } | 1061 | } | ||
1062 | return; | 1062 | return; | ||
1063 | } | 1063 | } | ||
1064 | m_serverCursor.hotSpot = c->hotspot(); | 1064 | m_serverCursor.hotSpot = c->hotspot(); | ||
1065 | m_serverCursor.image = buffer->data().copy(); | 1065 | m_serverCursor.image = buffer->data().copy(); | ||
1066 | m_serverCursor.image.setDevicePixelRatio(cursorSurface->scale()); | ||||
1066 | if (needsEmit) { | 1067 | if (needsEmit) { | ||
1067 | emit changed(); | 1068 | emit changed(); | ||
1068 | } | 1069 | } | ||
1069 | } | 1070 | } | ||
1070 | 1071 | | |||
1071 | void CursorImage::loadTheme() | 1072 | void CursorImage::loadTheme() | ||
1072 | { | 1073 | { | ||
1073 | if (m_cursorTheme) { | 1074 | if (m_cursorTheme) { | ||
▲ Show 20 Lines • Show All 243 Lines • Show Last 20 Lines |