From: <ki...@it...> - 2003-09-23 08:24:18
|
Hi, there is a problem with correct default picture size in the=20 lib-score-engine. When opening a .gmn file with the old noteviewer the=20= default scaling (with zoom=3D1) was chosen (optimised?) so, that the=20 score fit to the screen. Currently the start size seems much larger than that. When using the=20 standalone viewers this is not a problem, just a few mouse-clicks=20 (zoom-out) and it's ok. I tried to use the new guido2gif and there this is a major problem! The=20= size of the .gif can't be adjusted correctly at the moment (when=20 adjustPagesize (=3Dcrop) is set to off). I tried some changes in GRPage::setMapping like .... if( vsizex <=3D 0 || vsizey <=3D 0 ) // set to = default scaling, apply the=20 zoom. { // why 3 / 4 ? /* jk: I think Kai wanted to display at least 3/4 of the = score on=20 full screen, if possible, keep it for compatibility reasons. It looks = nice :-) */ = =09 /* maxWidth =3D hdc.MaxWidth(); // = ::GetDeviceCaps(hdc,HORZRES) * 3/ 4; maxHeight =3D hdc.MaxHeight(); // = ::GetDeviceCaps(hdc,VERTRES) * 3/ 4; */ // try it with some default // new maxWidth =3D 1280; maxHeight =3D 1024; const float scaleConv =3D 1; // UNCONST; // * 3 / 4 / = 12.0; // why 12 ? // vsizex =3D int(maxWidth * zoom);// * sizex * scaleConv); // vsizey =3D int(maxHeight * zoom); // * sizey * = scaleConv); vsizex =3D sizex * zoom; // TEST vsizey =3D sizey * zoom; // TEST } // hdc.SetViewportExt( vsizex, vsizey ); /* this seems to be equal to zoom? float newScaleX =3D float(vsizex) / sizex; float newScaleY =3D float(vsizey) / sizey; */ // new float newScaleX =3D float(vsizex) / maxWidth; float newScaleY =3D float(vsizey) / maxWidth; .... --------------------------------- With these hacks and correct parameters it worked very well on the=20 native Windows version and the guido2gif BUT on the wxWindows version=20 the functionality of zoom-in and zoom-out were twisted! Has anybody (Jerome) a clean solution? Until this is not fixed I can't=20= use the GUIDOlib-guido2gif.exe on the noteserver. Thanks J=FCrgen PS: Holger has now contact to a good programmer at UBC who'd like to=20 join GUIDOlib development in next future. |