fix(popup): fit the current X11 monitor

This commit is contained in:
2026-08-14 22:54:15 +09:00
parent 59482d00f3
commit 38475318db
8 changed files with 505 additions and 115 deletions

6
fn.h
View File

@@ -28,9 +28,10 @@ void dictthread(void*);
void dictlookup(Dictreq*, Dictres*);
void drawthread(void*);
void popupposition(Caret*, int, int, int, int, int, int, int*, int*);
void popuparea(Area*, int, Area*, int, int, Area*);
void popupposition(Caret*, int, int, Area*, int, int, int*, int*);
int pagemarker(char*, int, int, int, int);
void popuplayout(Drawcmd*, int, Popup*);
void popuplayout(Drawcmd*, int, int, Popup*);
void popupdraw(u32int*, Drawcmd*, Popup*);
void imthread(void*);
Emit transmap(Im*, Rune);
@@ -49,6 +50,7 @@ void* emalloc(ulong);
void* erealloc(void*, ulong);
int textinit(void);
void textclose(void);
int textwidth(Str*);
void textdraw(u32int*, int, int, int, int, Str*);
void textdrawfit(u32int*, int, int, int, int, int, Str*);