Rosen Iliev
8e5faec07c
Prevent crash when XInput is not present
...
Now returns from the function instead of throwing an exception
2017-08-30 18:10:56 +03:00
Fraser Waters
4a31379f92
Add remarks about not reusing the same variable to ref/out methods
2017-08-28 15:52:04 +01:00
Fraser Waters
b1e30393a1
Optimize assignment to vector math out parameters
...
See #500 for more details.
Instead of using the pattern:
result = new Vector(x, y, z)
Which would allocate and copy a vector instance, instead assign the fields
directly:
result.X = x;
result.Y = y;
result.Z = z;
This should be a small improvment in performance.
2017-08-27 16:13:32 +01:00
Fraser Waters
fd4871aa87
Fix style errors in iPhoneOS project
2017-08-26 13:43:22 +01:00
VperuS
404c0c3b4b
Fix RefreshRate return 0 on MacOS
2017-08-17 08:32:22 +03:00
Fraser Waters
e9e471f785
Fix out String parameters
2017-08-13 14:38:53 +01:00
Fraser Waters
b4dc24cfcf
Merge pull request #632 from UnknownShadow200/develop
...
X11DisplayDevice - Use XRRSizes array directly if dev.Bounds is empty
2017-08-08 17:53:41 +01:00
UnknownShadow200
9a299788d8
Missed one replacement of current_resolution_index to current_sizes_index
2017-08-08 10:03:38 +10:00
Fraser Waters
d7c44693e7
Fix SA1000 in Platform\iPhoneOS\iPhoneOSGameView.cs
...
Fixes "The keyword 'typeof' must not be followed by a space."
2017-08-07 18:01:52 +01:00
UnknownShadow200
84dc4d207c
X11DisplayDevice - Use XRRSizes array directly if dev.Bounds is empty
...
Directly indexing into the array returned from XRRSizes is the way khronos recommends at https://www.khronos.org/opengl/wiki/Programming_OpenGL_in_Linux:_Changing_the_Screen_Resolution
The old way was multiplying that index by depths.Length, as an index into the available_res list. This is incorrect because it doesn't account for when a display device has multiple refresh rates.
2017-08-08 00:13:23 +10:00
Fraser Waters
178508ac0e
Merge pull request #625 from Frassle/opengl4.6
...
Add OpenGL 4.6 Support
2017-08-06 18:39:21 +01:00
Fraser Waters
e331a6d5ca
Merge pull request #624 from Nihlus/cocoa-machport-leak-fix
...
Fix leaking Cocoa Machports on macOS
2017-08-06 18:11:09 +01:00
Fraser Waters
2e88a735dc
Fix casting bug introduced in 127c6fd6
...
A "&" operator was accidently removed when updating variables to
auto-properties.
2017-08-06 18:06:40 +01:00
UnknownShadow200
5f158997b8
Use Marshal.SystemDefaultCharSize instead of hardcoding 2 bytes per char
...
Also move Marshal.FreeHGlobal up because buffer doesn't need to persist after PtrToStringAuto was called.
2017-08-06 08:36:51 +10:00
UnknownShadow200
a3c0b05371
Allocate 2 instead of 1 byte per char for buffer used in WinGLNative.HandleDropFiles
...
DragQueryFile returns number of characters. Previously, a buffer of 'number of characters' bytes was being allocated.
This change fixes crashing when the platform uses a character set with more than one byte per character. (unicode charset has 2 bytes)
Fixes #626
2017-08-05 23:56:42 +10:00
Jarl Gullberg
77bca92a02
Use local variable instead of reusing the field.
2017-08-04 18:46:17 +02:00
Jarl Gullberg
b0e7465f6c
Reuse selectors.
2017-08-04 18:40:16 +02:00
Jarl Gullberg
c02e959f7a
Move early return out of the autorelease pool.
2017-08-04 18:39:44 +02:00
Fraser Waters
b9e03c99b3
Rerun Generator.Bind
2017-08-04 16:57:38 +01:00
Jarl Gullberg
af1e3bdf0f
Correct screwy formatting.
2017-08-04 17:41:45 +02:00
Jarl Gullberg
3cf07ff790
Broke the autorelease code out into a class and replaced the usage.
2017-08-04 17:38:26 +02:00
Jarl Gullberg
a7ddb543a9
Moved the autorelease pool to the context.
2017-08-04 17:38:26 +02:00
Jarl Gullberg
5828203f8e
Implemented an autorelease pool for Cocoa's NativeWindow implementation.
2017-08-04 17:38:26 +02:00
Jarl Gullberg
3bfaeda99d
Correct arithmetic operator position.
2017-08-04 12:35:06 +02:00
Jarl Gullberg
c06ce5658d
Correct equality comparsion operator position.
2017-08-04 12:35:06 +02:00
Jarl Gullberg
205cb307ec
Correct base call operator position.
2017-08-04 12:35:06 +02:00
Jarl Gullberg
b08acb758a
Correct cast operator position.
2017-08-04 12:35:06 +02:00
Jarl Gullberg
5db88e0a8f
Correct cast operator position.
2017-08-04 12:35:06 +02:00
Jarl Gullberg
5dcbea8405
Correct semicolon spacing in API.cs
2017-08-04 12:04:46 +02:00
Jarl Gullberg
3654fa4107
Correct semicolon spacing in OpenTK.
2017-08-04 11:41:52 +02:00
Jarl Gullberg
8c434a2629
Correct comma spacing in DisplayService.
2017-08-03 11:50:46 +02:00
Jarl Gullberg
9ed5e53a92
Correct comma spacing in GLObsolete.
2017-08-03 11:50:44 +02:00
Jarl Gullberg
de030a97a5
Regenerate bindings to correct comma spacing.
2017-08-03 11:50:43 +02:00
Jarl Gullberg
cab25daf16
Correct comma spacing in OpenTK, excluding generated files.
2017-08-03 11:50:42 +02:00
Fraser Waters
bc3f33271f
Merge pull request #590 from Frassle/gamewindowtests
...
GameWindow tests and some X11 fixes
2017-08-02 15:04:47 +01:00
Fraser Waters
302ec5001a
Merge pull request #597 from ppy/fix-white-flash
...
Fix white flash when starting GameWindow based application on windows
2017-08-01 13:50:30 +01:00
Dean Herbert
cf572b3bb8
Add comment regarding performance
2017-07-31 22:31:02 +09:00
Dean Herbert
4fe58d9545
Add comment about setting background color
2017-07-31 15:52:46 +09:00
Fraser Waters
38e91eb91e
Wait for ConfigureNotify when changing X11 Bounds
2017-07-30 22:36:26 +01:00
Fraser Waters
5213ec200e
Change client_rectangle to client_size
...
The Location part of client_rectangle was never used.
2017-07-30 22:36:26 +01:00
Fraser Waters
26fac6f032
Change X11 entry assembly search and provide null fallback
2017-07-30 22:36:26 +01:00
Jarl Gullberg
e9422ab25c
Merge pull request #608 from Nihlus/cleanup-6-keyword-spacing
...
Correct keyword spacing
2017-07-30 17:28:04 +02:00
Jarl Gullberg
b84f4e21c7
Merge pull request #609 from leezer3/RailDriver
...
Windows HID: Implement generic Consumer device which returns a button collection
2017-07-28 13:37:42 +02:00
Jarl Gullberg
7090695ac6
Correct keyword spacing in OpenTK.
2017-07-28 12:29:22 +02:00
Jarl Gullberg
1931919e2e
Use explicit modifiers for Android code.
2017-07-28 12:08:57 +02:00
Jarl Gullberg
016799060a
Use explicit modifiers for iOS code.
2017-07-28 12:06:13 +02:00
Jarl Gullberg
e7620a11b4
Remove regions from iOS and correct brace style.
2017-07-28 12:01:28 +02:00
Jarl Gullberg
15a0d86fe0
Remove regions from Android.
2017-07-28 12:01:12 +02:00
Jarl Gullberg
56bf133a78
Merge pull request #600 from Nihlus/stylecop-1-initial
...
Add StyleCop.Analyzers to projects
2017-07-28 11:22:32 +02:00
Fraser Waters
62a2db426f
Fix Helper methods to use out Strings
2017-07-28 06:16:53 +01:00