Project

General

Profile

機能 #1164 » 1164-score.patch

cob odo, 2018-04-17 02:54

View differences:

core/mui/cairo_miracle_painter.rb
306 306
      if photo
307 307
        width, height = shape.ink_rect.width/Pango::SCALE, shape.ink_rect.height/Pango::SCALE
308 308
        pixbuf = photo.load_pixbuf(width: width, height: height){ on_modify }
309
        c.save {
310
          x = layout.index_to_pos(shape.start_index).x / Pango::SCALE
311
          y = layout.index_to_pos(shape.start_index).y / Pango::SCALE
312
          c.translate(x, y)
309 313
          c.set_source_pixbuf(pixbuf)
310 314
          c.rectangle(0, 0, width, height)
311 315
          c.fill
316
        }
312 317
      end
313 318
    end
314 319
    layout end
(1-1/3)