}
location_dirty = true;
- dirty = true;
+ mark_dirty();
update_offset();
}
{
b->buffer = buf;
b->location_dirty = true;
- b->dirty = true;
+ b->mark_dirty();
}
for(Bufferable *b=prev_in_buffer; b; b=b->prev_in_buffer)
{
b->buffer = buf;
b->location_dirty = true;
- b->dirty = true;
+ b->mark_dirty();
}
}
{
offset = new_offset;
location_dirty = true;
- dirty = true;
+ mark_dirty();
}
if(next_in_buffer)
else if(buffer && offset+get_data_size()>buffer->get_size())
{
location_dirty = true;
- dirty = true;
+ mark_dirty();
}
}
+void Bufferable::mark_dirty()
+{
+ dirty = true;
+}
+
void Bufferable::upload_data(char *target) const
{
if(!buffer)