Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_dragdrop.cc
| Show First 20 Lines • Show All 847 Lines • ▼ Show 20 Lines | immDrawPixelsTexTiled_scaling(&state, | ||||
| col); | col); | ||||
| } | } | ||||
| else { | else { | ||||
| int padding = 4 * UI_DPI_FAC; | int padding = 4 * UI_DPI_FAC; | ||||
| x = xy[0] - 2 * padding; | x = xy[0] - 2 * padding; | ||||
| y = xy[1] - 2 * UI_DPI_FAC; | y = xy[1] - 2 * UI_DPI_FAC; | ||||
| const uchar text_col[] = {255, 255, 255, 255}; | const uchar text_col[] = {255, 255, 255, 255}; | ||||
| UI_icon_draw_ex(x, y, drag->icon, U.inv_dpi_fac, 0.8, 0.0f, text_col, false); | UI_icon_draw_ex( | ||||
| x, y, drag->icon, U.inv_dpi_fac, 0.8, 0.0f, text_col, false, UI_NO_ICON_OVERLAY_TEXT); | |||||
| } | } | ||||
| } | } | ||||
| static void wm_drag_draw_item_name(wmDrag *drag, const int x, const int y) | static void wm_drag_draw_item_name(wmDrag *drag, const int x, const int y) | ||||
| { | { | ||||
| const uiFontStyle *fstyle = UI_FSTYLE_WIDGET; | const uiFontStyle *fstyle = UI_FSTYLE_WIDGET; | ||||
| const uchar text_col[] = {255, 255, 255, 255}; | const uchar text_col[] = {255, 255, 255, 255}; | ||||
| UI_fontstyle_draw_simple(fstyle, x, y, WM_drag_get_item_name(drag), text_col); | UI_fontstyle_draw_simple(fstyle, x, y, WM_drag_get_item_name(drag), text_col); | ||||
| ▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines | |||||