Commit Graph

28 Commits

Author SHA1 Message Date
Lawrence Kesteloot
2023380cbf Fix size of window on MacOS.
The API for NSWindow's creation has a contentRect parameter,
but it seems to be handled like a frameRect. So convert from
contentRect to frameRect first. Without this change the
top 20-ish lines of the image are under the title bar.
2018-08-27 10:05:54 -07:00
Robert Swain
cb49ea94a0 Update for macOS 10.13 (#13) 2018-08-26 08:47:18 +02:00
Ankeet
4f01702f81 Got this working on 10.11 (#12) 2017-05-13 23:00:44 +02:00
Nicolas Guillemot
a5e8dd4e2e fix close window notif and unused vars (#10)
It wasn't detecting that the window was closed when I closed it by
clicking the red X button. As a result, the window would close, but
mfb_update() didn't return -1, so the program kept running.

This was fixed by listening to the willClose event and using it to set a
flag. I'm not sure if this is the best way to do it, I really know
nothing about OSX/Cocoa.

Also, I fixed a few unused varible warnings. And warnings related to
NSUInteger not matching the expected signature with NSWindowStyleMask.
2017-01-24 21:18:06 +01:00
Marcus Fritzsch
b0f1590fc5 Basic wayland support though wl_shm (#8)
* x11: need to return somethin from processEvents()

* Added wayland support

* Documented how to use wayland support

* wayland: re-attach the buffer to actually trigger an update

* wayland: use the seat_listener
2017-01-24 20:14:11 +01:00
Daniel Collin
494af34aab Merge pull request #9 from nlguillemot/master
woops: didnt allocate enough and also clear to zero.
2017-01-24 18:48:18 +01:00
Nicolas Guillemot
920e11a9e5 woops: didnt allocate enough and also clear to zero. 2017-01-24 09:30:21 -08:00
Daniel Collin
c04a118658 Fixed title 2017-01-24 11:12:57 +01:00
Daniel Collin
d6ac8e9c67 Merge pull request #5 from nlguillemot/master
fixed out-of-bounds access to bmiColors
2017-01-24 09:52:51 +01:00
Nicolas Guillemot
3777cae1ee fixed out-of-bounds access to bmiColors
bmiColors is a C style flexible array with a default value of 1, so the bmiColors[1] and bmiColors[2] were accessing memory out of bounds and causing very weird stuff to happen. Fixed by doing the appropriate flexible buffer allocation.
2017-01-24 00:45:21 -08:00
Daniel Collin
a00f42a83b Fixed return and removed ESC check 2014-06-06 18:28:39 +02:00
Daniel Collin
d13f5e070b Updated README 2014-06-06 18:23:32 +02:00
Daniel Collin
eee0175202 Some cleanup 2014-06-06 18:18:34 +02:00
Daniel Collin
6a1100b611 Updated README 2014-06-06 18:16:01 +02:00
Daniel Collin
2e7fb72a87 Renamed file 2014-06-06 18:13:55 +02:00
Daniel Collin
3f856d32bb Updated README 2014-06-06 18:10:29 +02:00
Daniel Collin
be9bc071bf Disabled keys info as not supported yet 2014-06-06 18:10:20 +02:00
Daniel Collin
78e89dbd3d Implemented MiniFB for X11 2014-06-06 17:51:00 +02:00
Daniel Collin
e672d8a7ac Changed linux to x11 in order to support other x11 compatible OSes (like FreeBSD) 2014-06-06 17:50:41 +02:00
Daniel Collin
60342adbea Added Linux build 2014-06-06 15:58:48 +02:00
Daniel Collin
e8d4574091 Fixed MSVC warning + grayscale colors 2014-06-06 14:39:09 +02:00
Daniel Collin
5f8f4be350 Cleanup and Win32 IDE hints 2014-06-06 14:38:52 +02:00
Daniel Collin
48bc35865e Implemented Windows version 2014-06-06 14:38:37 +02:00
Daniel Collin
3d3e9e63bc Added tundra build files 2014-06-06 10:14:01 +02:00
Daniel Collin
d119cfccc8 Added noise test 2014-06-06 10:13:51 +02:00
Daniel Collin
4d50ed3fe2 Added first version of Mac implementation 2014-06-06 10:13:41 +02:00
Daniel Collin
1bc99c1547 Ignore tundra tempfiles 2014-06-06 10:11:59 +02:00
Daniel Collin
0b3bbaa0cb Initial commit 2014-06-06 07:41:52 +02:00