| 176 | } |
| 177 | |
| 178 | void RenderView::setDesignResolutionSize(float width, float height, ResolutionPolicy resolutionPolicy) |
| 179 | { |
| 180 | AXASSERT(resolutionPolicy != ResolutionPolicy::UNKNOWN, "should set resolutionPolicy"); |
| 181 | |
| 182 | if (width == 0.0f || height == 0.0f) |
| 183 | { |
| 184 | return; |
| 185 | } |
| 186 | |
| 187 | _designResolutionSize.set(width, height); |
| 188 | _resolutionPolicy = resolutionPolicy; |
| 189 | |
| 190 | updateDesignResolutionSize(); |
| 191 | } |
| 192 | |
| 193 | const Vec2& RenderView::getDesignResolutionSize() const |
| 194 | { |