 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
ab5000
Joined: 06 May 2008 Posts: 74
|
Posted: Sun Jun 14, 2009 5:50 pm Post subject: vlfGuiCancelBottomDialog crash |
|
|
Hi.
I'm working on a project that uses VLF. All is fine, but when i try to cancel a bottomdialog it crashes. This only happens when only X button is displayed, like this:
| Code: | | vlfGuiBottomDialog(-1, VLF_DI_ENTER, 1, 0, VLF_DEFAULT, NULL); |
If X and O are both displayed, all works fine.
With the previous beta versione all worked fine.
Can someone help me?
Thanks.
ab5000
EDIT: I've done some other testing. When the bottomdialog only displays O:
| Code: | | vlfGuiBottomDialog(VLF_DI_BACK, -1, 1, 0, VLF_DEFAULT, OnBackFromHwInfo); |
it doesn't crash. So:
- BottomDialog with X + O = No Crash
- BottomDialog with O = No Crash
- BottomDialog with X = Crash!!!
Then i've swapped X and O (O=Enter, X=Back), but X always crashes. So key layout (EUR/JAP) doesn't matter. |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Mon Jun 15, 2009 4:40 pm Post subject: |
|
|
| Yes, cancelling the bottom dialog crashes if you only have X. It didn't happen in the versions before 1.0. |
|
| Back to top |
|
 |
ab5000
Joined: 06 May 2008 Posts: 74
|
Posted: Mon Jun 15, 2009 5:34 pm Post subject: |
|
|
Noone knows how to fix this?
Thanks. _________________
| Code: | %:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%> |
|
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Mon Jun 15, 2009 5:37 pm Post subject: |
|
|
| Don't use only X. :D |
|
| Back to top |
|
 |
ab5000
Joined: 06 May 2008 Posts: 74
|
Posted: Mon Jun 15, 2009 6:01 pm Post subject: |
|
|
| J.F. wrote: | | Don't use only X. :D |
Well, maybe... If i recall correctly, there's a function to hide all objects in a certain region of the screen. Maybe i can hide the O key (i nedd it only for a menu) and ingnore it in the code.
EDIT: Yes, i recalled correctly.
| Code: | /**
* Sets the visibility of the items in a rectangle
*
* @param x - x position of rectangle
* @param y - y position of rectangle
* @param w - width of rectangle
* @param h - height of rectangle
* @param visible . boolean indicating visibility
*
* @returns - < 0 on error
*/
int vlfGuiSetRectangleVisibility(int x, int y, int w, int h, int visible); |
I will try ASAP.
EDIT2: in the dc6 graphics thread moonlight says this functions isn't 100% working. some objects aren't hidden. i'll try, i hope it will work. _________________
| Code: | %:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%> |
|
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Mon Jun 15, 2009 10:17 pm Post subject: |
|
|
| It will hide the entire bottom dialog, not only O button. |
|
| Back to top |
|
 |
ab5000
Joined: 06 May 2008 Posts: 74
|
Posted: Mon Jun 15, 2009 10:37 pm Post subject: |
|
|
| Torch wrote: | | It will hide the entire bottom dialog, not only O button. |
Well, maybe I can make O = Exit... _________________
| Code: | %:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%> |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|