-
-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove notcurses_resize() from the public API #367
Comments
I've removed the indications in the documentation that this needs to be called manually for I think we might want to move the screen geometry resample to the front of |
Removed the note from the book. |
I have moved ==1872895== Invalid read of size 1
==1872895== at 0x48635CC: notcurses_rasterize (render.c:884)
==1872895== by 0x4863F6B: notcurses_refresh (render.c:1061)
==1872895== by 0x10FDD4: chunli_draw (chunli.c:20)
==1872895== by 0x1101D4: chunli_demo (chunli.c:61)
==1872895== by 0x110C7D: ext_demos (demo.c:220)
==1872895== by 0x1124FD: main (demo.c:532)
==1872895== Address 0x7610330 is 16 bytes after a block of size 86,400 alloc'd
==1872895== at 0x483677F: malloc (vg_replace_malloc.c:309)
==1872895== by 0x4863EEA: notcurses_refresh (render.c:1053)
==1872895== by 0x10FDD4: chunli_draw (chunli.c:20)
==1872895== by 0x1101D4: chunli_demo (chunli.c:61)
==1872895== by 0x110C7D: ext_demos (demo.c:220)
==1872895== by 0x1124FD: main (demo.c:532)
==1872895==
==1872895== Invalid read of size 8
==1872895== at 0x4860458: cell_double_wide_p (notcurses.h:1052)
==1872895== by 0x4863600: notcurses_rasterize (render.c:889)
==1872895== by 0x4863F6B: notcurses_refresh (render.c:1061)
==1872895== by 0x10FDD4: chunli_draw (chunli.c:20)
==1872895== by 0x1101D4: chunli_demo (chunli.c:61)
==1872895== by 0x110C7D: ext_demos (demo.c:220)
==1872895== by 0x1124FD: main (demo.c:532)
==1872895== Address 0x7370068 is 8 bytes after a block of size 57,600 alloc'd
==1872895== at 0x48366AF: malloc (vg_replace_malloc.c:308)
==1872895== by 0x4838DE7: realloc (vg_replace_malloc.c:836)
==1872895== by 0x48619A0: reshape_shadow_fb (render.c:110)
==1872895== by 0x4862633: notcurses_render_internal (render.c:469)
==1872895== by 0x4864031: notcurses_render (render.c:1079)
==1872895== by 0x118619: demo_render (hud.c:457)
==1872895== by 0x110087: chunli_draw (chunli.c:41)
==1872895== by 0x1101D4: chunli_demo (chunli.c:61)
==1872895== by 0x110C7D: ext_demos (demo.c:220)
==1872895== by 0x1124FD: main (demo.c:532)
==1872895==
==1872895== Invalid read of size 8
==1872895== at 0x4860458: cell_double_wide_p (notcurses.h:1052)
==1872895== by 0x4863C6E: notcurses_rasterize (render.c:1007)
==1872895== by 0x4863F6B: notcurses_refresh (render.c:1061)
==1872895== by 0x10FDD4: chunli_draw (chunli.c:20)
==1872895== by 0x1101D4: chunli_demo (chunli.c:61)
==1872895== by 0x110C7D: ext_demos (demo.c:220)
==1872895== by 0x1124FD: main (demo.c:532)
==1872895== Address 0x7370068 is 8 bytes after a block of size 57,600 alloc'd
==1872895== at 0x48366AF: malloc (vg_replace_malloc.c:308)
==1872895== by 0x4838DE7: realloc (vg_replace_malloc.c:836)
==1872895== by 0x48619A0: reshape_shadow_fb (render.c:110)
==1872895== by 0x4862633: notcurses_render_internal (render.c:469)
==1872895== by 0x4864031: notcurses_render (render.c:1079)
==1872895== by 0x118619: demo_render (hud.c:457)
==1872895== by 0x110087: chunli_draw (chunli.c:41)
==1872895== by 0x1101D4: chunli_demo (chunli.c:61)
==1872895== by 0x110C7D: ext_demos (demo.c:220)
==1872895== by 0x1124FD: main (demo.c:532)
==1872895==
==1872895== |
The reason for the crash is summarized in this existing comment near the top of // FIXME need to track outer{x,y} (position on screen) and inner{x,y}
// (position within lastframe/rvec, which is lfdimx-sized)
for(y = nc->stdscr->absy ; y < nc->stdscr->leny + nc->stdscr->absy ; ++y){ by calling |
I think |
Got it! w00t! |
It's gone, and we're good. |
I don't think the user should ever need to call
notcurses_resize()
themselves, and it can be hidden. We call it innotcurses_render()
at the end of the rendering step. Why don't we just call it before the rendering step, instead?Am I missing something?
If we do hide it, be sure to remove it from all the docs, including the book.
The text was updated successfully, but these errors were encountered: