Skip to content

Commit

Permalink
Merge branch 'erik-700-barcodes' into erik-750-slider
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Corry committed Dec 5, 2023
2 parents ff2a254 + 0d734e2 commit e98e53b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion src/pixel_display.toit
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ abstract class PixelDisplay implements Window:
round_down (max_canvas_height_ width) y_rounding_
y_rounding_
// Don't widen any more if the patches are already too flat to fill the full height.
if max_height <= driver_.height: break
if max_height < driver_.height: break
// Don't widen any more if the patches already cover the whole width.
if width >= driver_.width: break
width_target += width_target
Expand Down
3 changes: 0 additions & 3 deletions src/png.toit
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ class PngElement extends CustomElement:
h/int
png_/AbstractPng

min_w: return w
min_h: return h

constructor --x/int?=null --y/int?=null png_file/ByteArray:
info := PngInfo png_file
if info.uncompressed_random_access:
Expand Down
6 changes: 0 additions & 6 deletions tests/style_test.toit
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,6 @@ abstract class TestElement extends Element:
draw canvas/Canvas -> none:
unreachable

min_w -> int:
unreachable

min_h -> int:
unreachable

class Square extends TestElement:
type -> string: return "square"
color/int := 0
Expand Down

0 comments on commit e98e53b

Please sign in to comment.