Moved out Window::SlideAnimation to td_ui.

This commit is contained in:
23rd 2024-03-24 00:34:39 +03:00
parent 5e11c43f84
commit 58fcedab64
3 changed files with 7 additions and 5 deletions

View file

@ -1495,8 +1495,6 @@ PRIVATE
window/window_session_controller.cpp
window/window_session_controller.h
window/window_session_controller_link_info.h
window/window_slide_animation.cpp
window/window_slide_animation.h
window/window_top_bar_wrap.h
window/themes/window_theme.cpp
window/themes/window_theme.h

View file

@ -53,9 +53,10 @@ void SlideAnimation::paintContents(QPainter &p) const {
0,
0,
_cacheUnder,
(_cacheUnder.width() - leftWidth * cIntRetinaFactor()),
_cacheUnder.width()
- leftWidth * style::DevicePixelRatio(),
0,
leftWidth * cIntRetinaFactor(),
leftWidth * style::DevicePixelRatio(),
_topSkip * retina);
}
@ -67,7 +68,7 @@ void SlideAnimation::paintContents(QPainter &p) const {
_cacheOver,
0,
0,
rightWidth * cIntRetinaFactor(),
rightWidth * style::DevicePixelRatio(),
_topSkip * retina);
}

View file

@ -402,6 +402,9 @@ PRIVATE
ui/widgets/fields/time_part_input_with_placeholder.cpp
ui/widgets/fields/time_part_input_with_placeholder.h
window/window_slide_animation.cpp
window/window_slide_animation.h
ui/ui_pch.h
)