ERRORCODE BackgroundObject::read_data(StorageDevicePtr device) { ERRORCODE error = GraphicObject::read_data(device); if (error == ERRORCODE_None) { // Convert to a graphic. record.select_flags = SELECT_FLAG_boundary | SELECT_FLAG_size_handles | SELECT_FLAG_move_handle | SELECT_FLAG_rotate_handle; remove_flags(OBJECT_FLAG_no_mask | OBJECT_FLAG_landscape); remove_refresh_flags(REFRESH_FLAG_opaque); ST_DEV_POSITION pos; device->tell(&pos); UpdateRotateHandle(); shrink_to_fit(); device->seek(pos, ST_DEV_SEEK_SET); my_type = OBJECT_TYPE_Graphic; } return error; }
void obby::user::release_net6() { // User must be already connected if(~get_flags() & flags::CONNECTED) throw std::logic_error("obby::user::release_net6"); m_user6 = NULL; remove_flags(flags::CONNECTED); }