X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fbufferable.cpp;h=4544c508cb072c4e47e02c357aab452d41e2a754;hb=66181b3f47322ffc9b8aebf04a8c222abe1a75a2;hp=fc0e3d21a203972b29e65165a5d09dd33241ba09;hpb=ffe1debbd757d20f7250fd8572c2c46cd901f559;p=libs%2Fgl.git diff --git a/source/bufferable.cpp b/source/bufferable.cpp index fc0e3d21..4544c508 100644 --- a/source/bufferable.cpp +++ b/source/bufferable.cpp @@ -48,15 +48,17 @@ void Bufferable::use_buffer(Buffer *buf, Bufferable *prev) update_offset(); } -void Bufferable::buffer_resized() +void Bufferable::change_buffer(Buffer *buf) { for(Bufferable *b=this; b; b=b->next_in_buffer) { + b->buffer = buf; b->location_dirty = true; b->dirty = true; } for(Bufferable *b=prev_in_buffer; b; b=b->prev_in_buffer) { + b->buffer = buf; b->location_dirty = true; b->dirty = true; }