Skip to content

Commit

Permalink
fixed issue with missing region top border edge
Browse files Browse the repository at this point in the history
  • Loading branch information
cracked-machine committed Feb 5, 2024
1 parent ea4a434 commit 2850506
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions doc/example/report.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
![memory map diagram](report.png)
|name|origin|size|remaining|collisions
|:-|:-|:-|:-|:-|
|<span style='color:yellowgreen'>kernel</span>|0x10|0x50|-0x10|{'rootfs': '0x50'}|
|<span style='color:lawngreen'>uboot</span>|0xD0|0x50|-0x10|{'uboot-scr': '0x110'}|
|<span style='color:navy'>rootfs</span>|0x50|0x30|0x10|{'kernel': '0x50'}|
|<span style='color:maroon'>dtb</span>|0x90|0x30|0x10|{}|
|<span style='color:darkslategray'>uboot-scr</span>|0x110|0x30|0x2a8|{'uboot': '0x110'}|
|<span style='color:darkolivegreen'>kernel</span>|0x10|0x50|-0x10|{'rootfs': '0x50'}|
|<span style='color:darkviolet'>uboot</span>|0xD0|0x50|-0x10|{'uboot-scr': '0x110'}|
|<span style='color:slategrey'>rootfs</span>|0x50|0x30|0x10|{'kernel': '0x50'}|
|<span style='color:mediumaquamarine'>dtb</span>|0x90|0x30|0x10|{}|
|<span style='color:mediumslateblue'>uboot-scr</span>|0x110|0x30|0x2a8|{'uboot': '0x110'}|
Binary file modified doc/example/report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion mm/diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _create_diagram(self, region_list: List[mm.types.Region]):
region_canvas = PIL.ImageDraw.Draw(region_img)

region_canvas.rectangle(
(0, 0, MemoryMap.width - 1, region.origin + region.size),
(0, 0, MemoryMap.width - 1, region.size - 1),
fill=region.colour,
outline="black",
width=1,
Expand Down

0 comments on commit 2850506

Please sign in to comment.