UI: Fix drag & drop bug
This commit is contained in:
parent
bda50fb439
commit
485bfa5570
1 changed files with 10 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue