rakkarage's picture

OpenTK.QuickStart missing System.Drawing

Project:The Open Toolkit library
Version:1.0-beta-1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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


Comments

Comment viewing options

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

#1

line 042

GL.Viewport(ClientRectangle);

was changed to

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

needs to change to

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

thanks

rakkarage's picture

#2

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

the Fiddler's picture

#3

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

#4

Status:in progress» fixed

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

the Fiddler's picture

#5

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

Closing issues fixed in 1.0 beta-1.