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

when trying to use crop on horizontal resolution, switch crashes #89

Closed
ericde45 opened this issue May 13, 2018 · 4 comments
Closed

when trying to use crop on horizontal resolution, switch crashes #89

ericde45 opened this issue May 13, 2018 · 4 comments

Comments

@ericde45
Copy link

hello

with the following code, i am able to create a crop at the top of the screen, so that the first 12 lines are not displayed :

    gfxConfigureCrop(0, 12, 0, 0); 
    gfxInitResolution(1280, 732);
    gfxConfigureResolution(1280,720);
    gfxInitDefault();

checking for resolution, i get 1280*732

but when using this , to have an horizontal crop :

    gfxConfigureCrop(32, 12, 0, 0); 
    gfxInitResolution(1280+32, 732);
    gfxConfigureResolution(1280,720);
    gfxInitDefault();

i get a crash with error 2345-0018

am i missing a point ? or is it a bug ?

thanks

my switch is 3.0.0, running HBL through pegaswitch

@fincs
Copy link
Contributor

fincs commented May 13, 2018

Seems to be LibnxError_BadGfxInit

@yellows8
Copy link
Contributor

Use:

gfxConfigureCrop(<crop left>, <crop top>, 1280, 720);
gfxInitDefault();

@ericde45
Copy link
Author

i made more tests
it seem to zoom the graphical display to fit in the crop part
i thin ki misunderstood the use of crop
i am searching for a way to have a larger screen but with a 1280*720 display, with borders not displayed
for example a line of 1600 pixels, with 1280 displayed and the ability to move the frame buffer start

if you have advices for this, they are welcome.

thanks

@yellows8
Copy link
Contributor

gfxInitResolutionDefault();
gfxInitDefault();
...
gfxConfigureCrop(...);

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

3 participants