src/viewer/svpaint.cpp
void SVPaint::PopupHandler(const SVEvent *sv_event) {
  // Since we only have the RGB values as popup items,
  // we take a shortcut to not bloat up code:
  rgb[sv_event->command_id - 1] = atoi(sv_event->parameter);
  window_->Pen(rgb[0], rgb[1], rgb[2]);
}
// Takes care of the SVET_POPUP events.
// In our case, SVET_POPUP is used to set RGB values.
Takes care of the SVET_POPUP events.
In our case, SVET_POPUP is used to set RGB values.
Takes care of the SVET_POPUP events . In our case SVET_POPUP is used to set RGB values .
void SVPaint::PopupHandler(const SVEvent *sv_event) {
  rgb[sv_event->command_id - 1] = atoi(sv_event->parameter);
  window_->Pen(rgb[0], rgb[1], rgb[2]);
}
void SVPaint :: PopupHandler ( const SVEvent * sv_event ) { rgb [ sv_event -> command_id - 1 ] = atoi ( sv_event -> parameter ) ; window_ -> Pen ( rgb [ 0 ] , rgb [ 1 ] , rgb [ 2 ] ) ; }
Takes care of the SVET_POPUP events.
Takes care of the SVET_POPUP events .
// Since we only have the RGB values as popup items, // we take a shortcut to not bloat up code: