rakkarage's picture

OpenTK.QuickStart missing System.Drawing

Project:The Open Toolkit library
Category:bug report

the quickstart sample seems to have removed a reference it still needs... system.drawing is not included in references...

it is technically not needed (if you change ClientRectangle.Width to Width)...

but one of those two needs to happen to make quickstart compilable? i vote #2


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rakkarage's picture


line 042


was changed to

GL.Viewport(ClientRectangle.X, ClientRectangle.Y, ClientRectangle.Width, ClientRectangle.Height);

needs to change to

GL.Viewport(X, Y, Width, Height);


rakkarage's picture


or idk... maybe build.exe was not supposed to make project with system.drawing removed from project references?

the Fiddler's picture


Status:open» in progress

As a temporary workaround, I suggest simply adding the System.Drawing reference back.

I'm still trying to determine the extent of the breakage caused by the new structures before deciding on the best course of action.

the Fiddler's picture


Status:in progress» fixed

Fixed in rev. 2478 by reverting the System.Drawing-related changes.

the Fiddler's picture


Version:0.9.x-dev» 1.0-beta-1
Status:fixed» closed

Closing issues fixed in 1.0 beta-1.