this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

font() chromakey argument order in python fixed (#2634) (#2653)

authored by

Gaiko-sw and committed by
GitHub
2ab4fe0e 77902de1

+9 -9
+9 -9
src/api/python.c
··· 318 318 pkpy_to_string(vm, 0, &text); 319 319 pkpy_to_int(vm, 1, &x); 320 320 pkpy_to_int(vm, 2, &y); 321 - pkpy_to_int(vm, 3, &width); 322 - pkpy_to_int(vm, 4, &height); 323 - pkpy_to_int(vm, 5, &chromakey_raw); 321 + pkpy_to_int(vm, 3, &chromakey_raw); 322 + pkpy_to_int(vm, 4, &width); 323 + pkpy_to_int(vm, 5, &height); 324 324 pkpy_to_bool(vm, 6, &fixed); 325 325 pkpy_to_int(vm, 7, &scale); 326 326 pkpy_to_bool(vm, 8, &alt); ··· 332 332 if (scale == 0) 333 333 { 334 334 pkpy_push_int(vm, 0); 335 + return 1; 335 336 } 336 - else 337 - { 338 - u8 chromakey = (u8) chromakey_raw; 339 - s32 size = core->api.font(tic, text, x, y, &chromakey, 1, width, height, fixed, scale, alt); 340 - pkpy_push_int(vm, size); 341 - } 337 + 338 + u8 chromakey = (u8) chromakey_raw; 339 + 340 + s32 size = core->api.font(tic, text, x, y, &chromakey, 1, width, height, fixed, scale, alt); 341 + pkpy_push_int(vm, size); 342 342 343 343 return 1; 344 344 }