| 327 | } |
| 328 | |
| 329 | void View::timebase_changed() |
| 330 | { |
| 331 | int width = get_view_width(); |
| 332 | if (width == 0){ |
| 333 | return; |
| 334 | } |
| 335 | |
| 336 | if (_device_agent->get_work_mode() != DSO){ |
| 337 | return; |
| 338 | } |
| 339 | |
| 340 | double scale = this->scale(); |
| 341 | double hori_res = _sampling_bar->get_hori_res(); |
| 342 | |
| 343 | if (hori_res > 0){ |
| 344 | scale = _session->cur_view_time() / width; |
| 345 | } |
| 346 | |
| 347 | set_scale_offset(scale, this->offset()); |
| 348 | } |
| 349 | |
| 350 | void View::set_scale_offset(double scale, int64_t offset) |
| 351 | { |
no test coverage detected