-
-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "wrong type of arguments for cairo_set_dash", sf.net #3014648
I am not particularly proud of this solution. If you have a better one, feel free to implement it.
- Loading branch information
Showing
4 changed files
with
46 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- lua/libcairo.c~ 2010-06-11 23:14:43.000000000 +0200 | ||
+++ lua/libcairo.c 2010-06-12 10:47:51.000000000 +0200 | ||
@@ -1452,12 +1452,12 @@ | ||
#endif | ||
{ | ||
struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0)); | ||
+ int num_dashes = ((int) tolua_tonumber(tolua_S,3,0)); | ||
#ifdef __cplusplus | ||
double* dashes = Mtolua_new_dim(double, num_dashes); | ||
#else | ||
double* dashes = (double*) malloc((num_dashes)*sizeof(double)); | ||
#endif | ||
- int num_dashes = ((int) tolua_tonumber(tolua_S,3,0)); | ||
double offset = ((double) tolua_tonumber(tolua_S,4,0)); | ||
{ | ||
#ifndef TOLUA_RELEASE |