コード例 #1
0
ファイル: memory_image.cpp プロジェクト: Athemis/c10t
void memory_image::set_pixel(pos_t x, pos_t y, color &c)
{
  if (!(x < get_width())) { return; }
  if (!(y < get_height())) { return; }
  c.write(this->colors + get_offset(x, y));
}