File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
CEdev/lib/src/graphics/graphx/v3 Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1037,8 +1037,7 @@ _FillCircle_NoClip:
1037
1037
mlt de
1038
1038
add hl , de
1039
1039
add hl , de
1040
- ld d , b
1041
- ld e , (iy + 3 ) ; x coord (circle center pos)
1040
+ ld de , (iy + 3 ) ; x coord (circle center pos)
1042
1041
add hl , de
1043
1042
ld (FCircleCenterPos_SMC) , hl \.r
1044
1043
sbc hl , bc
@@ -2252,11 +2251,11 @@ _: ld (DrawTile_SMC),hl \.r
2252
2251
_: srl h
2253
2252
rr l
2254
2253
djnz - _
2255
- ld (ix +- 4 ) , l ; y = y_offset / tilemap->tile_height
2256
- ld (ix + 12 ) , bc ; y_offset = y_offset % tilemap->tile_height;
2254
+ ld (ix +- 4 ) , l ; y = y_offset / tilemap->tile_height
2255
+ ld (ix + 12 ) , bc ; y_offset = y_offset % tilemap->tile_height;
2257
2256
2258
2257
ld b , (iy + 10 )
2259
- ld hl , (ix + 9 )
2258
+ ld hl , (ix + 9 ) ; x offset
2260
2259
ld c , (iy + 7 )
2261
2260
dec c
2262
2261
ld a , l
@@ -2268,8 +2267,9 @@ _: srl h
2268
2267
ld a , l
2269
2268
ld (X_Res_SMC) , a \.r
2270
2269
ld hl , (iy + 15 )
2270
+ or a , a
2271
2271
sbc hl , bc
2272
- ld (X_Draw_SMC) , hl \.r ; x_draw = tilemap->x_loc-x_offset;
2272
+ ld (X_Draw_SMC) , hl \.r ; x_draw = tilemap->x_loc-x_offset;
2273
2273
2274
2274
or a , a
2275
2275
sbc hl , hl
@@ -2368,18 +2368,18 @@ _TilePtr:
2368
2368
ld ix , 0
2369
2369
add ix , sp
2370
2370
ld iy , (ix + 6 )
2371
- ld b , (iy + 14 )
2371
+ ld b , (iy + 10 )
2372
2372
ld hl , (ix + 9 )
2373
2373
_: srl h
2374
2374
rr l
2375
2375
djnz - _
2376
2376
ex de , hl
2377
- ld b , (iy + 15 )
2377
+ ld b , (iy + 11 )
2378
2378
ld hl , (ix + 12 )
2379
2379
_: srl h
2380
2380
rr l
2381
2381
djnz - _
2382
- ld h , (iy + 9 )
2382
+ ld h , (iy + 13 )
2383
2383
mlt hl
2384
2384
add hl , de
2385
2385
ld de , (iy + 0 )
You can’t perform that action at this time.
0 commit comments