|
|
| version 1.21, 2005/02/07 14:46:11 | version 1.22, 2011/01/15 18:04:43 |
|---|---|
| Line 138 static void calc_gdcslavewait(UINT dots) | Line 138 static void calc_gdcslavewait(UINT dots) |
| gdcsub_setslavewait(clk); | gdcsub_setslavewait(clk); |
| } | } |
| void gdcsub_setvectl(GDCVECT *vect, int x1, int y1, int x2, int y2) { | void gdcsub_setvectl(GDCVECT *vect, int xx1, int yy1, int xx2, int yy2) { |
| UINT ope; | UINT ope; |
| int dy; | int dy; |
| Line 146 void gdcsub_setvectl(GDCVECT *vect, int | Line 146 void gdcsub_setvectl(GDCVECT *vect, int |
| int tmp; | int tmp; |
| ope = 0; | ope = 0; |
| dy = y2 - y1; | dy = yy2 - yy1; |
| if (dy < 0) { | if (dy < 0) { |
| dy = 0 - dy; | dy = 0 - dy; |
| } | } |
| dx = x2 - x1; | dx = xx2 - xx1; |
| if (dx == 0) { | if (dx == 0) { |
| if (y1 <= y2) { | if (yy1 <= yy2) { |
| ope = 7; | ope = 7; |
| } | } |
| else { | else { |
| Line 161 void gdcsub_setvectl(GDCVECT *vect, int | Line 161 void gdcsub_setvectl(GDCVECT *vect, int |
| } | } |
| else { | else { |
| if (dx > 0) { | if (dx > 0) { |
| if (y1 >= y2) { | if (yy1 >= yy2) { |
| ope += 2; | ope += 2; |
| } | } |
| } | } |
| else { | else { |
| dx = 0 - dx; | dx = 0 - dx; |
| ope += 4; | ope += 4; |
| if (y1 <= y2) { | if (yy1 <= yy2) { |
| ope += 2; | ope += 2; |
| } | } |
| } | } |