Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing bug #47

Open
xdelatour opened this issue Apr 10, 2023 · 3 comments
Open

Drawing bug #47

xdelatour opened this issue Apr 10, 2023 · 3 comments

Comments

@xdelatour
Copy link

While doing some tests i found this:

fvdi-bug

I don't know where the problem comes from. Is it caused by a single function or by the combination of several?

	wind_get (hwind, WF_WORKXYWH, &xw, &yw, &ww, &hw);	/* Zone de travail */
	pxy[0] = xw;                				/* Preparer effacement fenetre */
	pxy[1] = yw;
	pxy[2] = xw + ww - 1;
	pxy[3] = yw + hw - 1;
	vswr_mode (handle, MD_REPLACE);  		 	/* Dessin en mode Remplacement */
	vsf_color (handle, 0);            			/* Couleur blanche */
	v_bar (handle, pxy);              			/* "Vider" la fenetre */
	vsf_color (handle, 1);					/* Couleur noire */
	vsf_perimeter (handle, 1);				/* Tracer le contour */

	...

	case T_ELL :						/* Ellipses */
		vsf_interior (handle, FIS_HOLLOW);		/* Vide */
		vsf_perimeter(handle, 1);
		vswr_mode (handle, MD_TRANS);			/* Mode transparent */
		for (i = 0 ; i < hw ; i += 3)			/* Boucle de dessin */
			v_ellipse (handle, xw + (ww / 2), yw + (hw / 2), i , (hw / 2) - i); /* Ellipse */
		break;
@xdelatour
Copy link
Author

Maybe related to #34 ?

@Atari260STE
Copy link

Atari260STE commented Jan 14, 2024

the same story with DRI APSKEL.C ( https://github.com/ggnkua/Atari_ST_Sources/blob/master/C/Digital%20Research%20Inc/alcyon/apskel.c ) example, v_ellipse isn't filled with the pattern under the latest FreeMiNT and FVDI:

/****************************************************************/
/* Draw Filled Ellipse.						*/
/****************************************************************/
draw_sample()
{
int temp[4];
	vsf_interior(handle,2);
	vsf_style(handle,8);
	vsf_color(handle,0);
	temp[0]=xwork;
	temp[1]=ywork;
	temp[2]=xwork+wwork-1;
	temp[3]=ywork+hwork-1;
	v_bar(handle,temp);		/* blank the interior */
	vsf_interior(handle,4);
	vsf_color(handle,1);
	v_ellipse(handle,xwork+wwork/2,ywork+hwork/2,wwork/2,hwork/2);
}

FreeMiNT_FVDI

@Atari260STE
Copy link

Atari260STE commented Jan 14, 2024

moreover, APSKEL's window is completely empty in case of fvdi-0.96a-ft2.8.1-c19-000.zip

Aranym_FVDI_APSKEL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants