1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

48 Commits

Author SHA1 Message Date
cad2cd5583 docs: fix typos using codespell (#17332) 2023-02-16 11:43:39 +02:00
c8c70de87d docs: unify format of notes (#17294) 2023-02-13 10:29:02 +02:00
017ace6ea7 vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
5bb058e35b gg: revamp the Context pipeline for more effects, implement an additive effect (#16394) 2022-11-12 09:39:18 +02:00
816e9319d7 cgen: remove the need for [console] for gg or ui programs on windows (#15912) 2022-09-29 15:02:50 +03:00
8b962f8446 checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752) 2022-09-15 07:59:31 +03:00
706a922e0c x.ttf: update to fix compilation of vlang/pdf and failing ci (#15109) 2022-07-17 19:44:11 +03:00
df4bd88d45 x.ttf: fix a bug in TTF fixed point data management (#14987) 2022-07-08 09:20:59 +03:00
5a79a54fe4 all: fix all remaining unsafe 0 (#14856) 2022-06-26 17:04:23 +03:00
1017335365 x.ttf: fix typo in README (#14528) 2022-05-26 11:17:15 +03:00
c26b7666c7 gg: some stuff required to have svg and png screenshots working on v ui (#14180) 2022-04-26 20:59:36 +03:00
4400efeb9f checker: Revert part of small_unsigned == signed (#13967) (#14075)
`gcc -W` doesn't error for e.g. u16 == i32, only for u32 == i16.
Any u16 value can fit in an i32.
2022-04-18 21:30:09 +03:00
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
c780de6282 checker: disallow 'small_unsigned == signed' (#13967) 2022-04-12 19:37:30 +03:00
49155ec312 parser: notice unnecessary parenthesis of reference (fix #11179) (#13739) 2022-03-15 16:11:53 +02:00
ceb05b163a strings: rename Builder.write_b() to Builder.write_byte(), add deprecation (#13313) 2022-01-28 20:34:44 +02:00
59357e873d math: move the math.mathutil generic min/max/abs fns to math (#13042) 2022-01-05 18:02:20 +02:00
4d4398fa8a sokol: type alias all gfx structs (#13014) 2022-01-02 20:36:01 +02:00
6d97b0a407 checker: improve checking of a << b, when a and b are numbers (#12589) 2021-11-29 03:48:49 +03:00
bd9564e38b ci: fix failing ttf_test.v after making char unavailable for variable names 2021-11-22 18:28:25 +02:00
e3b65092d6 parser: deprecate size_t (#11443) 2021-09-08 13:09:32 +03:00
8be2be8311 all: change 'if !(a in b)' to 'if a !in b' (#11330) 2021-08-29 11:55:18 +03:00
ad3835b598 parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
cdb31119f3 x.ttf: apply ctx.scale for x and y in draw_text_bmp (#10598) 2021-06-28 13:32:17 +03:00
96adfc9d5b x.ttf: vfmt the examples in the README.md 2021-06-24 11:15:13 +03:00
f18265e6a8 gg: remove obsolete usages of use_ortho: true 2021-06-24 11:15:12 +03:00
60c880a0cc vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
eac1e25c5d strings: simplify Builder (#10263) 2021-05-31 14:21:06 +03:00
8a380f4699 tools: make v test-cleancode test everything by default (#10050) 2021-05-08 13:32:29 +03:00
0567cbe431 examples: fix compilation with -prod 2021-04-23 14:48:07 +03:00
73352583e7 ci: fix all -cstrict warnings with gcc and clang (#9792) 2021-04-19 15:38:48 +03:00
46e7e27ba3 v vet: give an error for trailing whitespace (#9574) 2021-04-09 13:22:14 +03:00
8caabf0e9e sokol: update to floooh/sokol@c602d83 (#9607) 2021-04-07 20:39:23 +02:00
04095f4088 ci: fix failing v -W build-tools and v -W build-examples; run vfmt. 2021-03-19 09:49:26 +02:00
a67d49050c math: add a pure V math.mathutil, with generic min, max and abs functions (#9176), and use it consistently 2021-03-12 11:28:04 +02:00
b712af56fd all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
d63b7bc35a all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
f54c1a5cc2 all: add strings.Builder.write_string and use write_string instead of write (#8892) 2021-02-22 13:18:11 +02:00
ea803113c3 checker: check unsafe V function calls (#8752) 2021-02-14 19:31:42 +01:00
e5a84719ca all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
d991712b3c gg: native rendering mode on macOS 2021-01-23 10:25:43 +01:00
ee9f9c9d81 x.ttf: add README, some improvements (#8157) 2021-01-17 03:11:47 +01:00
1d1fda9522 x.ttf: fix for the MSVC get_string pointer issue (#8139)
* fix tab and spaces in indentation

* fix for glyph not found error

* fix for get_String in ttf.v pointer problems with MSVC

* avoid second return in get_string

* move from u32 to u64 to byteptr in 64 bit systems
2021-01-15 20:40:56 +02:00
55e3e50b9b ttf: improvement on not found glyphs (#8050) 2021-01-12 00:49:58 +01:00
692a718428 examples: use os.resource_abs_path, so v run examples/ttf_font/example_ttf.v works 2021-01-10 20:36:50 +02:00
c067cc0357 vlib: add a TTF font loader and render in x.ttf (#7995) 2021-01-10 20:14:41 +02:00