Fixed font base85 decoding for trigraphs
This commit is contained in:
parent
0fef9148fc
commit
3b89835533
21
nuklear.h
21
nuklear.h
|
@ -3801,7 +3801,6 @@ nk_vsnprintf(char *buf, int buf_size, const char *fmt, va_list args)
|
|||
NK_ASSERT(buf);
|
||||
NK_ASSERT(buf_size);
|
||||
if (!buf || !buf_size || !fmt) return 0;
|
||||
|
||||
for (iter = fmt; *iter && len < buf_size; iter++) {
|
||||
/* copy all non-format characters */
|
||||
while (*iter && (*iter != '%') && (len < buf_size))
|
||||
|
@ -10229,7 +10228,7 @@ NK_GLOBAL const char nk_proggy_clean_ttf_compressed_data_base85[11980+1] =
|
|||
"%(?A%R$f<->Zts'^kn=-^@c4%-pY6qI%J%1IGxfLU9CP8cbPlXv);C=b),<2mOvP8up,UVf3839acAWAW-W?#ao/^#%KYo8fRULNd2.>%m]UK:n%r$'sw]J;5pAoO_#2mO3n,'=H5(et"
|
||||
"Hg*`+RLgv>=4U8guD$I%D:W>-r5V*%j*W:Kvej.Lp$<M-SGZ':+Q_k+uvOSLiEo(<aD/K<CCc`'Lx>'?;++O'>()jLR-^u68PHm8ZFWe+ej8h:9r6L*0//c&iH&R8pRbA#Kjm%upV1g:"
|
||||
"a_#Ur7FuA#(tRh#.Y5K+@?3<-8m0$PEn;J:rh6?I6uG<-`wMU'ircp0LaE_OtlMb&1#6T.#FDKu#1Lw%u%+GM+X'e?YLfjM[VO0MbuFp7;>Q&#WIo)0@F%q7c#4XAXN-U&VB<HFF*qL("
|
||||
"$/V,;(kXZejWO`<[5??ewY(*9=%wDc;,u<'9t3W-(H1th3+G]ucQ]kLs7df($/*JL]@*t7Bu_G3_7mp7<iaQjO@.kLg;x3B0lqp7Hf,^Ze7-##@/c58Mo(3;knp0%)A7?-W+eI'o8)b<"
|
||||
"$/V,;(kXZejWO`<[5?\?ewY(*9=%wDc;,u<'9t3W-(H1th3+G]ucQ]kLs7df($/*JL]@*t7Bu_G3_7mp7<iaQjO@.kLg;x3B0lqp7Hf,^Ze7-##@/c58Mo(3;knp0%)A7?-W+eI'o8)b<"
|
||||
"nKnw'Ho8C=Y>pqB>0ie&jhZ[?iLR@@_AvA-iQC(=ksRZRVp7`.=+NpBC%rh&3]R:8XDmE5^V8O(x<<aG/1N$#FX$0V5Y6x'aErI3I$7x%E`v<-BY,)%-?Psf*l?%C3.mM(=/M0:JxG'?"
|
||||
"7WhH%o'a<-80g0NBxoO(GH<dM]n.+%q@jH?f.UsJ2Ggs&4<-e47&Kl+f//9@`b+?.TeN_&B8Ss?v;^Trk;f#YvJkl&w$]>-+k?'(<S:68tq*WoDfZu';mM?8X[ma8W%*`-=;D.(nc7/;"
|
||||
")g:T1=^J$&BRV(-lTmNB6xqB[@0*o.erM*<SWF]u2=st-*(6v>^](H.aREZSi,#1:[IXaZFOm<-ui#qUq2$##Ri;u75OK#(RtaW-K-F`S+cF]uN`-KMQ%rP/Xri.LRcB##=YL3BgM/3M"
|
||||
|
@ -10292,8 +10291,7 @@ NK_GLOBAL const char nk_proggy_clean_ttf_compressed_data_base85[11980+1] =
|
|||
|
||||
#define NK_CURSOR_DATA_W 90
|
||||
#define NK_CURSOR_DATA_H 27
|
||||
NK_GLOBAL const char
|
||||
nk_custom_cursor_data[NK_CURSOR_DATA_W * NK_CURSOR_DATA_H + 1] =
|
||||
NK_GLOBAL const char nk_custom_cursor_data[NK_CURSOR_DATA_W * NK_CURSOR_DATA_H + 1] =
|
||||
{
|
||||
"..- -XXXXXXX- X - X -XXXXXXX - XXXXXXX"
|
||||
"..- -X.....X- X.X - X.X -X.....X - X.....X"
|
||||
|
@ -15916,6 +15914,7 @@ nk_finish(struct nk_context *ctx, struct nk_window *win)
|
|||
if (!win->layout->popup_buffer.active) return;
|
||||
|
||||
/* from here on is for popup window buffer handling */
|
||||
/*--------------------------------------------------*/
|
||||
buf = &win->layout->popup_buffer;
|
||||
memory = ctx->memory.memory.ptr;
|
||||
|
||||
|
@ -19910,9 +19909,19 @@ nk_group_begin(struct nk_context *ctx, struct nk_panel *layout, const char *titl
|
|||
c = &win->layout->clip;
|
||||
nk_panel_alloc_space(&bounds, ctx);
|
||||
nk_zero(layout, sizeof(*layout));
|
||||
/* This triggers either if you pass the same panel to parent window or parent and child group
|
||||
* or forgot to add a `nk_group_end` to a `nk_group_begin`. */
|
||||
NK_ASSERT(win->layout != layout && "Parent and group are not allowed to use the same panel");
|
||||
/* This assert triggers either if you pass the same panel to a parent parent and child group
|
||||
* or forgot to add a `nk_group_end` to a `nk_group_begin`.
|
||||
* Correct example:
|
||||
* struct nk_panel panel;
|
||||
* if (nk_begin(...,&panel,...)) {
|
||||
* struct nk_panel tab;
|
||||
* if (nk_group_begin(...,&tab,...)) {
|
||||
* ....
|
||||
* nk_group_end(...);
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
|
||||
/* find persistent group scrollbar value */
|
||||
title_len = (int)nk_strlen(title);
|
||||
|
|
Loading…
Reference in New Issue