selfdrive/ui/paint.cc
static void ui_draw_vision_frame(UIState *s) {
  // Draw video frames
  glEnable(GL_SCISSOR_TEST);
  glViewport(s->video_rect.x, s->video_rect.y, s->video_rect.w, s->video_rect.h);
  glScissor(s->viz_rect.x, s->viz_rect.y, s->viz_rect.w, s->viz_rect.h);
  draw_frame(s);
  glDisable(GL_SCISSOR_TEST);

  glViewport(0, 0, s->fb_w, s->fb_h);
}
//BB END: functions added for the display of various items
BB END: functions added for the display of various items
BB END : functions added for the display of various items
static void ui_draw_vision_frame(UIState *s) {
  glEnable(GL_SCISSOR_TEST);
  glViewport(s->video_rect.x, s->video_rect.y, s->video_rect.w, s->video_rect.h);
  glScissor(s->viz_rect.x, s->viz_rect.y, s->viz_rect.w, s->viz_rect.h);
  draw_frame(s);
  glDisable(GL_SCISSOR_TEST);
  glViewport(0, 0, s->fb_w, s->fb_h);
}
static void ui_draw_vision_frame ( UIState * s ) { glEnable ( GL_SCISSOR_TEST ) ; glViewport ( s -> video_rect . x , s -> video_rect . y , s -> video_rect . w , s -> video_rect . h ) ; glScissor ( s -> viz_rect . x , s -> viz_rect . y , s -> viz_rect . w , s -> viz_rect . h ) ; draw_frame ( s ) ; glDisable ( GL_SCISSOR_TEST ) ; glViewport ( 0 , 0 , s -> fb_w , s -> fb_h ) ; }
BB END: functions added for the display of various items
BB END : functions added for the display of various items
// Draw video frames