SetSize sets the size for the render frame, doesn't do anything if already that size (returns fale)
(size image.Point)
| 136 | // SetSize sets the size for the render frame, |
| 137 | // doesn't do anything if already that size (returns fale) |
| 138 | func (rf *RenderFrame) SetSize(size image.Point) bool { |
| 139 | if rf.Format.Size == size { |
| 140 | return false |
| 141 | } |
| 142 | rf.Format.Size = size |
| 143 | rf.ReConfig() |
| 144 | return true |
| 145 | } |
| 146 | |
| 147 | // ReConfig reconfigures rendering |
| 148 | func (rf *RenderFrame) ReConfig() { |