Chromium Code Reviews| Index: native_client_sdk/src/examples/api/graphics_3d/graphics_3d.cc |
| diff --git a/native_client_sdk/src/examples/api/graphics_3d/graphics_3d.cc b/native_client_sdk/src/examples/api/graphics_3d/graphics_3d.cc |
| index abe5aec3a13252a8cb29f808703a829fddea56d5..01992c93e009b3ffcd91fab59a099bd930545f96 100644 |
| --- a/native_client_sdk/src/examples/api/graphics_3d/graphics_3d.cc |
| +++ b/native_client_sdk/src/examples/api/graphics_3d/graphics_3d.cc |
| @@ -247,8 +247,8 @@ class Graphics3DInstance : public pp::Instance { |
| } |
| virtual void DidChangeView(const pp::View& view) { |
| - int32_t new_width = view.GetRect().width(); |
| - int32_t new_height = view.GetRect().height(); |
| + int32_t new_width = view.GetRect().width() * view.GetDeviceScale(); |
|
binji
2014/07/17 00:05:36
maybe a quick comment here?
Josh Horwich
2014/07/17 00:46:13
Done. WDYT?
|
| + int32_t new_height = view.GetRect().height() * view.GetDeviceScale(); |
| if (context_.is_null()) { |
| if (!InitGL(new_width, new_height)) { |