Skip to content

Commit 93799d9

Browse files
MarijnS95notgull
authored andcommitted
Reformat markdown documents
1 parent c020394 commit 93799d9

File tree

2 files changed

+37
-41
lines changed

2 files changed

+37
-41
lines changed

CHANGELOG.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -73,38 +73,38 @@
7373

7474
# 0.3.0
7575

76-
* On MacOS, the contents scale is updated when set_buffer() is called, to adapt when the window is on a new screen (#68).
77-
* **Breaking:** Split the `GraphicsContext` type into `Context` and `Surface` (#64).
78-
* On Web, cache the document in the `Context` type (#66).
79-
* **Breaking:** Introduce a new "owned buffer" for no-copy presentation (#65).
80-
* Enable support for multi-threaded WASM (#77).
81-
* Fix buffer resizing on X11 (#69).
82-
* Add a set of functions for handling buffer damage (#99).
83-
* Add a `fetch()` function for getting the window contents (#104).
84-
* Bump MSRV to 1.64 (#81).
76+
- On MacOS, the contents scale is updated when set_buffer() is called, to adapt when the window is on a new screen (#68).
77+
- **Breaking:** Split the `GraphicsContext` type into `Context` and `Surface` (#64).
78+
- On Web, cache the document in the `Context` type (#66).
79+
- **Breaking:** Introduce a new "owned buffer" for no-copy presentation (#65).
80+
- Enable support for multi-threaded WASM (#77).
81+
- Fix buffer resizing on X11 (#69).
82+
- Add a set of functions for handling buffer damage (#99).
83+
- Add a `fetch()` function for getting the window contents (#104).
84+
- Bump MSRV to 1.64 (#81).
8585

8686
# 0.2.1
8787

88-
* Bump `windows-sys` to 0.48
88+
- Bump `windows-sys` to 0.48
8989

9090
# 0.2.0
9191

92-
* Add support for Redox/Orbital.
93-
* Add support for BSD distributions.
94-
* Ported Windows backend from `winapi` to `windows-sys`.
95-
* **Breaking:** Take a reference to a window instead of owning the window.
96-
* Add a `from_raw` function for directly using raw handles.
97-
* Improvements for Wayland support.
98-
* Support for HiDPI on macOS.
99-
* **Breaking:** Add feature flags for `x11` and `wayland` backends.
100-
* Use static dispatch instead of dynamic dispatch for the backends.
101-
* Add `libxcb` support to the X11 backend.
102-
* Use X11 MIT-SHM extension, if available.
92+
- Add support for Redox/Orbital.
93+
- Add support for BSD distributions.
94+
- Ported Windows backend from `winapi` to `windows-sys`.
95+
- **Breaking:** Take a reference to a window instead of owning the window.
96+
- Add a `from_raw` function for directly using raw handles.
97+
- Improvements for Wayland support.
98+
- Support for HiDPI on macOS.
99+
- **Breaking:** Add feature flags for `x11` and `wayland` backends.
100+
- Use static dispatch instead of dynamic dispatch for the backends.
101+
- Add `libxcb` support to the X11 backend.
102+
- Use X11 MIT-SHM extension, if available.
103103

104104
# 0.1.1
105105

106-
* Added WASM support (Thanks to [Liamolucko](https://github.com/Liamolucko)!)
107-
* CALayer is now used for Mac OS backend, which is more flexible about what happens in the windowing library (Thanks to [lunixbochs](https://github.com/lunixbochs)!)
106+
- Added WASM support (Thanks to [Liamolucko](https://github.com/Liamolucko)!)
107+
- CALayer is now used for Mac OS backend, which is more flexible about what happens in the windowing library (Thanks to [lunixbochs](https://github.com/lunixbochs)!)
108108

109109
# 0.1.0
110110

README.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
Overview
2-
==
1+
# Softbuffer
32

43
Enables software rendering via drawing an image straight to a window.
54

65
Softbuffer integrates with the [`raw-window-handle`](https://crates.io/crates/raw-window-handle) crate
76
to allow writing pixels to a window in a cross-platform way while using the very high quality dedicated window management
87
libraries that are available in the Rust ecosystem.
98

10-
Alternatives
11-
==
9+
## Alternatives
1210

1311
[minifb](https://crates.io/crates/minifb) also allows putting a 2D buffer/image on a window in a platform-independent way.
1412
Minifb's approach to doing window management itself, however, is problematic code duplication. We already have very high quality
@@ -24,21 +22,21 @@ hardware accelerated graphics stack in any way, and is thus more portable to ins
2422
hardware acceleration (e.g. VMs, older computers, computers with misconfigured drivers). Softbuffer should be used over
2523
pixels when its GPU-accelerated post-processing effects are not needed.
2624

27-
License & Credits
28-
==
25+
## License & Credits
2926

3027
This library is dual-licensed under MIT or Apache-2.0, just like minifb and rust. Significant portions of code were taken
3128
from the minifb library to do platform-specific work.
3229

33-
Platform support:
34-
==
30+
## Platform support:
31+
3532
Some, but not all, platforms supported in [raw-window-handle](https://crates.io/crates/raw-window-handle) are supported
3633
by Softbuffer. Pull requests are welcome to add new platforms! **Nonetheless, all major desktop platforms that winit uses
3734
on desktop are supported.**
3835

3936
For now, the priority for new platforms is:
40-
1) to have at least one platform on each OS working (e.g. one of Win32 or WinRT, or one of Xlib, Xcb, and Wayland) and
41-
2) for that one platform on each OS to be the one that winit uses.
37+
38+
1. to have at least one platform on each OS working (e.g. one of Win32 or WinRT, or one of Xlib, Xcb, and Wayland) and
39+
2. for that one platform on each OS to be the one that winit uses.
4240

4341
(PRs will be accepted for any platform, even if it does not follow the above priority.)
4442

@@ -59,13 +57,12 @@ For now, the priority for new platforms is:
5957
❔: Immature\
6058
❌: Absent
6159

62-
WebAssembly
63-
-----------
60+
## WebAssembly
6461

6562
To run an example with the web backend: `cargo run-wasm --example winit`
6663

67-
Example
68-
==
64+
## Example
65+
6966
```rust,no_run
7067
use std::num::NonZeroU32;
7168
use std::rc::Rc;
@@ -138,8 +135,8 @@ fn main() {
138135
}
139136
```
140137

141-
MSRV Policy
142-
==
138+
## MSRV Policy
139+
143140
This crate's Minimum Supported Rust Version (MSRV) is **1.70**. Changes to
144141
the MSRV will be accompanied by a minor version bump.
145142

@@ -163,7 +160,6 @@ same MSRV policy.
163160

164161
[`rust-windowing`]: https://github.com/rust-windowing
165162

166-
Changelog
167-
---------
163+
## Changelog
168164

169165
See the [changelog](CHANGELOG.md) for a list of this package's versions and the changes made in each version.

0 commit comments

Comments
 (0)