Skip to content

Commit 4e079d2

Browse files
committed
prepare 0.3.6
1 parent 0d9372c commit 4e079d2

5 files changed

Lines changed: 39 additions & 26 deletions

File tree

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ members = [
1313
resolver = "2"
1414

1515
[workspace.package]
16-
version = "0.3.5"
16+
version = "0.3.6"
1717
authors = ["Raphael Amorim <rapha850@gmail.com>"]
1818
edition = "2021"
1919
license = "MIT"
@@ -29,16 +29,16 @@ readme = "README.md"
2929
# Note: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#multiple-locations
3030
# Sugarloaf example uses path when used locally, but uses
3131
# version from crates.io when published.
32-
teletypewriter = { path = "teletypewriter", version = "0.3.5" }
33-
rio-backend = { path = "rio-backend", version = "0.3.5" }
34-
rio-window = { path = "rio-window", version = "0.3.5", default-features = false }
35-
rio-notifier = { path = "rio-notifier", version = "0.3.5" }
36-
sugarloaf = { path = "sugarloaf", version = "0.3.5" }
32+
teletypewriter = { path = "teletypewriter", version = "0.3.6" }
33+
rio-backend = { path = "rio-backend", version = "0.3.6" }
34+
rio-window = { path = "rio-window", version = "0.3.6", default-features = false }
35+
rio-notifier = { path = "rio-notifier", version = "0.3.6" }
36+
sugarloaf = { path = "sugarloaf", version = "0.3.6" }
3737

3838
# Own dependencies
39-
copa = { path = "copa", default-features = true, version = "0.3.5" }
40-
rio-proc-macros = { path = "rio-proc-macros", version = "0.3.5" }
41-
corcovado = { path = "corcovado", version = "0.3.5" }
39+
copa = { path = "copa", default-features = true, version = "0.3.6" }
40+
rio-proc-macros = { path = "rio-proc-macros", version = "0.3.6" }
41+
corcovado = { path = "corcovado", version = "0.3.6" }
4242
raw-window-handle = { version = "0.6.2", features = ["std"] }
4343
parking_lot = { version = "0.12.4", features = [
4444
"nightly",

docs/src/pages/changelog.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,28 @@ language: 'en'
77

88
## 0.3.6
99

10+
- Performance improvements.
11+
- Now a cell is 8 bytes.
12+
```
13+
// Bit layout for Square(u64)
14+
//
15+
// bits 0..20 (21): codepoint (Unicode scalar value, max 0x10_FFFF)
16+
// OR low bits of bg color when content_tag != Codepoint
17+
// bits 21..22 (2): wide (Wide enum)
18+
// bits 23..29 (7): per-cell flag bits (CellFlags), incl WRAPLINE at bit 0
19+
// bits 30..31 (2): content_tag (NEW)
20+
// 0 = Codepoint (text cell, use style_id below)
21+
// 1 = BgPalette (bg-only cell, palette index in 32..39)
22+
// 2 = BgRgb (bg-only cell, RGB packed in 32..55)
23+
// 3 = reserved
24+
// bits 32..47 (16): style_id (when tag == Codepoint)
25+
// bg palette idx in low 8 (when tag == BgPalette)
26+
// bg RGB.r:g in low 16 (when tag == BgRgb)
27+
// bits 48..63 (16): extras_id (when tag == Codepoint)
28+
// bg RGB.b in low 8 (when tag == BgRgb)
29+
```
1030
- Add support for `window.columns` and `window.rows` for window sizing. Ignores invalid `0` values with fallback to `window.width`/`window.height`, and guarantees a minimum startup size of `300x200` logical pixels.
31+
- Avoid send damage events to Application when terminal already has damage found and unprocessed.
1132
- Fix macOS window close button (red semaphore) showing quit confirmation dialog. Clicking the close button now always closes the window. Quit confirmation is only triggered by Cmd+Q.
1233
- Remove `window.macos-use-quit-dialog` configuration option.
1334

rio-backend/src/crosswords/grid/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -446,11 +446,6 @@ impl<T> Grid<T> {
446446
}
447447
}
448448

449-
// ---------------------------------------------------------------------------
450-
// Helpers specific to Grid<Square> for working with the per-grid style table
451-
// and extras storage.
452-
// ---------------------------------------------------------------------------
453-
454449
use crate::crosswords::square::Square;
455450
use crate::crosswords::style::{Style, StyleId};
456451

rio-backend/src/crosswords/grid/resize.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ use crate::crosswords::Row;
99
use std::cmp::{max, min, Ordering};
1010
use std::mem;
1111

12-
// All grid resize logic operates on `Square` cells specifically (it manipulates
13-
// wide-char spacers and wrap markers, which are Square-specific concepts), so
14-
// the impl is bound to `Grid<Square>` rather than the generic `Grid<T>`.
1512
impl Grid<Square> {
1613
/// Resize the grid's width and/or height.
1714
pub fn resize(&mut self, reflow: bool, lines: usize, columns: usize) {

0 commit comments

Comments
 (0)