Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .changeset/pyide-pygame-canvas-size.md

This file was deleted.

18 changes: 18 additions & 0 deletions packages/hyperbook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# hyperbook

## 0.107.3

### Patch Changes

- [`f104673`](https://github.com/openpatch/hyperbook/commit/f1046731cc3a4fd64ab5491bb0cdaaecd05ecd7c) Thanks [@mikebarkmin](https://github.com/mikebarkmin)! - Fix `pyide`: a pygame script's canvas now takes the size from `pygame.display.set_mode`.

SDL draws into the canvas element at the surface's own pixel size, but nothing resized that
element, so it kept the HTML default of 300x150 and every frame was clipped to the top-left
corner of the game. The failure was quiet: pygame itself reported the requested size, so
`screen.get_size()` and `pygame.display.get_window_size()` both returned `(480, 360)` for a
`set_mode((480, 360))` whose right half and bottom two thirds were nowhere on screen.

`set_mode` now carries the surface size over to the canvas element, the way `screensize`
already does for the turtle. The backing store matches the surface pixel for pixel rather
than being scaled by the device pixel ratio, since SDL writes raw pixels into it.

Scripts that do not import pygame are untouched, turtle scripts included.

## 0.107.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hyperbook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hyperbook",
"version": "0.107.2",
"version": "0.107.3",
"author": "Mike Barkmin",
"homepage": "https://github.com/openpatch/hyperbook#readme",
"license": "MIT",
Expand Down
18 changes: 18 additions & 0 deletions packages/markdown/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @hyperbook/markdown

## 0.79.1

### Patch Changes

- [`f104673`](https://github.com/openpatch/hyperbook/commit/f1046731cc3a4fd64ab5491bb0cdaaecd05ecd7c) Thanks [@mikebarkmin](https://github.com/mikebarkmin)! - Fix `pyide`: a pygame script's canvas now takes the size from `pygame.display.set_mode`.

SDL draws into the canvas element at the surface's own pixel size, but nothing resized that
element, so it kept the HTML default of 300x150 and every frame was clipped to the top-left
corner of the game. The failure was quiet: pygame itself reported the requested size, so
`screen.get_size()` and `pygame.display.get_window_size()` both returned `(480, 360)` for a
`set_mode((480, 360))` whose right half and bottom two thirds were nowhere on screen.

`set_mode` now carries the surface size over to the canvas element, the way `screensize`
already does for the turtle. The backing store matches the surface pixel for pixel rather
than being scaled by the device pixel ratio, since SDL writes raw pixels into it.

Scripts that do not import pygame are untouched, turtle scripts included.

## 0.79.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperbook/markdown",
"version": "0.79.0",
"version": "0.79.1",
"author": "Mike Barkmin",
"homepage": "https://github.com/openpatch/hyperbook#readme",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions platforms/vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @hyperbook/vscode-extension

## 0.55.1

### Patch Changes

- Updated dependencies [[`f104673`](https://github.com/openpatch/hyperbook/commit/f1046731cc3a4fd64ab5491bb0cdaaecd05ecd7c)]:
- @hyperbook/markdown@0.79.1

## 0.55.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion platforms/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"homepage": "https://hyperbook.openpatch.org",
"main": "./out/extension.js",
"version": "0.55.0",
"version": "0.55.1",
"engines": {
"vscode": "^1.125.0"
},
Expand Down