バグ #1137 » window.rb.diff
| core/plugin/openimg/window.rb 2018-01-02 13:03:39.000000000 +0900 | ||
|---|---|---|
|
if pixbufloader.is_a? GdkPixbuf::PixbufLoader
|
||
|
rect = nil
|
||
|
pixbufloader.ssc(:area_updated, self) do |_, x, y, width, height|
|
||
|
rect_ = rect
|
||
|
if rect
|
||
|
rect[:left] = [rect[:left], x].min
|
||
|
rect[:top] = [rect[:top], y].min
|
||
|
rect[:right] = [rect[:right], x+width].max
|
||
|
rect[:bottom] = [rect[:bottom], y+height].max
|
||
|
rect_[:left] = [rect_[:left], x].min
|
||
|
rect_[:top] = [rect_[:top], y].min
|
||
|
rect_[:right] = [rect_[:right], x+width].max
|
||
|
rect_[:bottom] = [rect_[:bottom], y+height].max
|
||
|
rect_ = nil
|
||
|
else
|
||
|
rect = {left: x, top: y, right: x+width, bottom: y+height}
|
||
|
Delayer.new do
|
||