fix bug in imageview module

This commit is contained in:
eddyem
2020-01-23 12:35:00 +03:00
parent cd4f2f03a0
commit 8c51b1c4c2
6 changed files with 61 additions and 49 deletions

View File

@@ -50,11 +50,15 @@ void* change_image(void *data){
// DBG("refresh");
GLubyte *raw = win->image->rawdata;
for(y = 0; y < h; y++){
if(y<5){
raw += w*3; continue;
}
if(y%20 == 19){
raw += w*3;
continue;
}
for(x = 0; x < w; x++){
if(x==14){raw+=15;x+=4; continue;}
if(x%20 != 19){
if(i < 80) raw[0]++;
else if(i < 170) raw[1]++;