Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Unified Diff: runtime/embedders/openglui/emulator/emulator_graphics_handler.cc

Issue 13042015: Various OpenGLUI changes: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/embedders/openglui/emulator/emulator_graphics_handler.cc
===================================================================
--- runtime/embedders/openglui/emulator/emulator_graphics_handler.cc (revision 20570)
+++ runtime/embedders/openglui/emulator/emulator_graphics_handler.cc (working copy)
@@ -11,7 +11,8 @@
char** argv)
: GraphicsHandler(".") {
glutInit(&argc, argv);
- SetViewport(0, 0, 480, 800);
+ width_ = 800;
+ height_ = 480;
for (int i = 1; i < argc; i++) {
if (argv[i][0] == '-') {
int next_arg = i + 1;
@@ -22,6 +23,7 @@
}
}
}
+ SetViewport(0, 0, width_, height_);
glutInitWindowSize(width_, height_);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH | GLUT_STENCIL);
glutCreateWindow("Dart");

Powered by Google App Engine
This is Rietveld 408576698