mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
UI: Fix drag & drop bug
This commit is contained in:
parent
bda50fb439
commit
485bfa5570
|
@ -66,12 +66,22 @@ void OBSBasic::AddDropSource(const char *data, DropType image)
|
|||
switch (image) {
|
||||
case DropType_RawText:
|
||||
obs_data_set_string(settings, "text", data);
|
||||
#ifdef _WIN32
|
||||
type = "text_gdiplus";
|
||||
#else
|
||||
type = "text_ft2_source";
|
||||
#endif
|
||||
break;
|
||||
case DropType_Text:
|
||||
#ifdef _WIN32
|
||||
obs_data_set_bool(settings, "read_from_file", true);
|
||||
obs_data_set_string(settings, "file", data);
|
||||
type = "text_gdiplus";
|
||||
#else
|
||||
obs_data_set_bool(settings, "from_file", true);
|
||||
obs_data_set_string(settings, "text_file", data);
|
||||
type = "text_ft2_source";
|
||||
#endif
|
||||
break;
|
||||
case DropType_Image:
|
||||
obs_data_set_string(settings, "file", data);
|
||||
|
|
Loading…
Reference in a new issue