Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
itdan3344
stb
提交
f2285749
S
stb
项目概览
itdan3344
/
stb
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
stb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f2285749
编写于
1月 29, 2018
作者:
S
Sean Barrett
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'compile' of
https://github.com/alculquicondor/stb
上级
0b81a543
a981af59
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
4 deletion
+4
-4
stb_tilemap_editor.h
stb_tilemap_editor.h
+2
-2
tests/Makefile
tests/Makefile
+2
-2
未找到文件。
stb_tilemap_editor.h
浏览文件 @
f2285749
...
...
@@ -1847,7 +1847,7 @@ static int stbte__minibutton(int colormode, int x, int y, int ch, int id)
int
x0
=
x
,
y0
=
y
,
x1
=
x
+
8
,
y1
=
y
+
7
;
int
over
=
stbte__hittest
(
x0
,
y0
,
x1
,
y1
,
id
);
if
(
stbte__ui
.
event
==
STBTE__paint
)
{
char
str
[
2
]
=
{
ch
,
0
};
char
str
[
2
]
=
{
(
char
)
ch
,
0
};
stbte__draw_textbox
(
x0
,
y0
,
x1
,
y1
,
str
,
1
,
0
,
colormode
,
STBTE__INDEX_FOR_ID
(
id
,
0
,
0
));
}
return
stbte__button_core
(
id
);
...
...
@@ -1858,7 +1858,7 @@ static int stbte__layerbutton(int x, int y, int ch, int id, int toggled, int dis
int
x0
=
x
,
y0
=
y
,
x1
=
x
+
10
,
y1
=
y
+
11
;
int
over
=
!
disabled
&&
stbte__hittest
(
x0
,
y0
,
x1
,
y1
,
id
);
if
(
stbte__ui
.
event
==
STBTE__paint
)
{
char
str
[
2
]
=
{
ch
,
0
};
char
str
[
2
]
=
{
(
char
)
ch
,
0
};
int
off
=
(
9
-
stbte__get_char_width
(
ch
))
/
2
;
stbte__draw_textbox
(
x0
,
y0
,
x1
,
y1
,
str
,
off
+
1
,
2
,
colormode
,
STBTE__INDEX_FOR_ID
(
id
,
disabled
,
toggled
));
}
...
...
tests/Makefile
浏览文件 @
f2285749
...
...
@@ -3,5 +3,5 @@ CFLAGS = -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -DSTB_DIVIDE_TEST
CPPFLAGS
=
-Wno-write-strings
-DSTB_DIVIDE_TEST
all
:
$(CC)
$(INCLUDES)
$(CFLAGS)
../stb_vorbis.c test_c_compilation.c
-lm
$(CC)
$(INCLUDES)
$(CPPFLAGS)
test_cpp_compilation.cpp
-lm
$(CC)
$(INCLUDES)
$(CFLAGS)
../stb_vorbis.c test_c_compilation.c
-lm
$(CC)
$(INCLUDES)
$(CPPFLAGS)
test_cpp_compilation.cpp
-lm
-lstdc
++
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录