mirror of
https://github.com/eddyem/eddys_snippets.git
synced 2026-03-20 08:41:02 +03:00
fix bug in imageview module
This commit is contained in:
@@ -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]++;
|
||||
|
||||
Reference in New Issue
Block a user