mirror of
https://github.com/raysan5/raylib.git
synced 2026-10-11 04:01:54 -04:00
Compare commits
3 Commits
2f768eb670
...
9f59089de1
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f59089de1 | |||
| 2f699f6bf0 | |||
| 98c175e692 |
@ -57,7 +57,7 @@ This is a set of recomendations and guidelines for binding authors, meant to hel
|
||||
| [fortran-raylib](https://github.com/interkosmos/fortran-raylib) | **6.0** | [Fortran](https://fortran-lang.org) | ISC |
|
||||
| [raylib-go](https://github.com/gen2brain/raylib-go) | **6.0** | [Go](https://golang.org) | Zlib |
|
||||
| [raylib-guile](https://github.com/petelliott/raylib-guile) | **auto** | [Guile](https://www.gnu.org/software/guile) | Zlib |
|
||||
| [h-raylib](https://github.com/Anut-py/h-raylib) | **5.5-dev** | [Haskell](https://haskell.org) | Apache-2.0 |
|
||||
| [h-raylib](https://github.com/Anut-py/h-raylib) | **6.1-dev** | [Haskell](https://haskell.org) | Apache-2.0 |
|
||||
| [raylib-hx](https://github.com/foreignsasquatch/raylib-hx) | 5.5 | [Haxe](https://haxe.org) | Zlib |
|
||||
| [jaylib](https://github.com/janet-lang/jaylib) | **5.0** | [Janet](https://janet-lang.org) | MIT |
|
||||
| [jaylib](https://github.com/electronstudio/jaylib/) | **6.0** | [Java](https://en.wikipedia.org/wiki/Java_(programming_language)) | GPLv3+CE |
|
||||
|
||||
@ -1804,11 +1804,11 @@ int InitPlatform(void)
|
||||
|
||||
// Center window into current monitor
|
||||
#if defined(__APPLE__)
|
||||
CORE.Window.position.x = monitorX + (monitorWidth - CORE.Window.screen.width)/2;
|
||||
CORE.Window.position.y = monitorY + (monitorHeight - CORE.Window.screen.height)/2;
|
||||
CORE.Window.position.x = monitorX + (monitorWidth - (int)CORE.Window.screen.width)/2;
|
||||
CORE.Window.position.y = monitorY + (monitorHeight - (int)CORE.Window.screen.height)/2;
|
||||
#else
|
||||
CORE.Window.position.x = monitorX + (monitorWidth - CORE.Window.render.width)/2;
|
||||
CORE.Window.position.y = monitorY + (monitorHeight - CORE.Window.render.height)/2;
|
||||
CORE.Window.position.x = monitorX + (monitorWidth - (int)CORE.Window.render.width)/2;
|
||||
CORE.Window.position.y = monitorY + (monitorHeight - (int)CORE.Window.render.height)/2;
|
||||
#endif
|
||||
SetWindowPosition(CORE.Window.position.x, CORE.Window.position.y);
|
||||
|
||||
|
||||
@ -3535,7 +3535,7 @@ unsigned int *ComputeSHA256(const unsigned char *data, int dataSize)
|
||||
hash[7] = 0x5be0cd19;
|
||||
|
||||
const unsigned long long bitLen = 8ULL*dataSize;
|
||||
unsigned long long paddedSize = dataSize + sizeof(dataSize);
|
||||
unsigned long long paddedSize = dataSize + sizeof(bitLen); // Reserve room for the 64 bit message length appended at the end
|
||||
paddedSize += (64 - (paddedSize%64));
|
||||
unsigned char *buffer = (unsigned char *)RL_CALLOC(paddedSize, sizeof(unsigned char));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user