mirror of
https://github.com/rkd77/elinks.git
synced 2025-05-18 00:48:57 -04:00
[plain] Show sixel images in plaintext document as before
This commit is contained in:
parent
dea05f7867
commit
9809c60d1d
@ -495,10 +495,11 @@ draw_doc(struct session *ses, struct document_view *doc_view, int active)
|
|||||||
|
|
||||||
copy_struct(&im, im2);
|
copy_struct(&im, im2);
|
||||||
|
|
||||||
int x;
|
int x = 0;
|
||||||
int found = 0;
|
int found = vs->plain;
|
||||||
|
|
||||||
for (x = 0; x < data[im.y].length; x++) {
|
if (!found) {
|
||||||
|
for (;x < data[im.y].length; x++) {
|
||||||
if ((im.image_number == data[im.y].ch.chars[x].data - 33) && (im.image_number == data[im.y].ch.chars[x+1].data - 33)) {
|
if ((im.image_number == data[im.y].ch.chars[x].data - 33) && (im.image_number == data[im.y].ch.chars[x+1].data - 33)) {
|
||||||
found = 1;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
@ -508,6 +509,7 @@ draw_doc(struct session *ses, struct document_view *doc_view, int active)
|
|||||||
if (!found) {
|
if (!found) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
im.x += box->x;
|
im.x += box->x;
|
||||||
im.y += box->y;
|
im.y += box->y;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user