Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Obs Studio
提交
cc7d67d0
O
Obs Studio
项目概览
小白菜888
/
Obs Studio
通知
4
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Obs Studio
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cc7d67d0
编写于
8月 17, 2019
作者:
J
jpark37
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
UI: Redundant/bad casts
上级
a6af5491
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
7 deletion
+9
-7
UI/window-basic-main.cpp
UI/window-basic-main.cpp
+3
-3
UI/window-basic-properties.cpp
UI/window-basic-properties.cpp
+6
-4
未找到文件。
UI/window-basic-main.cpp
浏览文件 @
cc7d67d0
...
...
@@ -130,7 +130,7 @@ static void AddExtraModulePaths()
if
(
ret
<=
0
)
return
;
string
path
=
(
char
*
)
base_module_dir
;
string
path
=
base_module_dir
;
#if defined(__APPLE__)
obs_add_module_path
((
path
+
"/bin"
).
c_str
(),
(
path
+
"/data"
).
c_str
());
...
...
@@ -4752,7 +4752,7 @@ static BPtr<char> ReadLogFile(const char *subdir, const char *log)
if
(
GetConfigPath
(
logDir
,
sizeof
(
logDir
),
subdir
)
<=
0
)
return
nullptr
;
string
path
=
(
char
*
)
logDir
;
string
path
=
logDir
;
path
+=
"/"
;
path
+=
log
;
...
...
@@ -4822,7 +4822,7 @@ void OBSBasic::on_actionViewCurrentLog_triggered()
const
char
*
log
=
App
()
->
GetCurrentLog
();
string
path
=
(
char
*
)
logDir
;
string
path
=
logDir
;
path
+=
"/"
;
path
+=
log
;
...
...
UI/window-basic-properties.cpp
浏览文件 @
cc7d67d0
...
...
@@ -29,7 +29,8 @@
using
namespace
std
;
static
void
CreateTransitionScene
(
OBSSource
scene
,
char
*
text
,
uint32_t
color
);
static
void
CreateTransitionScene
(
OBSSource
scene
,
const
char
*
text
,
uint32_t
color
);
OBSBasicProperties
::
OBSBasicProperties
(
QWidget
*
parent
,
OBSSource
source_
)
:
QDialog
(
parent
),
...
...
@@ -153,8 +154,8 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_)
uint32_t
colorA
=
0xFFB26F52
;
uint32_t
colorB
=
0xFF6FB252
;
CreateTransitionScene
(
sourceA
,
(
char
*
)
"A"
,
colorA
);
CreateTransitionScene
(
sourceB
,
(
char
*
)
"B"
,
colorB
);
CreateTransitionScene
(
sourceA
,
"A"
,
colorA
);
CreateTransitionScene
(
sourceB
,
"B"
,
colorB
);
/**
* The cloned source is made from scratch, rather than using
...
...
@@ -278,7 +279,8 @@ static obs_source_t *CreateLabel(const char *name, size_t h)
return
txtSource
;
}
static
void
CreateTransitionScene
(
OBSSource
scene
,
char
*
text
,
uint32_t
color
)
static
void
CreateTransitionScene
(
OBSSource
scene
,
const
char
*
text
,
uint32_t
color
)
{
obs_data_t
*
settings
=
obs_data_create
();
obs_data_set_int
(
settings
,
"width"
,
obs_source_get_width
(
scene
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录