Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用SDL模式时,点击demoui的Tab Control模块下的List按钮会崩溃 #19

Closed
sohide opened this issue Oct 30, 2018 · 2 comments

Comments

@sohide
Copy link
Contributor

sohide commented Oct 30, 2018

崩溃断点在SDL内部的D3D绘图驱动里面,
但经过验证,可能是由于canvas.c中友很多绘图函数,多处地方判断条件是
y > c->clip_bottom,
x > c->clip_right
导致刚好lcd缓存溢出一个像素,最终导致绘图驱动越界崩溃
正确判断方法应该是 y >= c->clip_bottom,x >= c->clip_right

@xianjimli
Copy link
Member

已修改,请在最新版本验证,谢谢。

@sohide
Copy link
Contributor Author

sohide commented Nov 1, 2018

1693a38

经过验证,问题已解决

@sohide sohide closed this as completed Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants