mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-25 07:18:52 -04:00
UI: Fix drag & drop bug
This commit is contained in:
1 parent
bda50fb439
commit
485bfa5570
1 file changed
+10
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user