Git Product home page Git Product logo

libwiigui's People

Contributors

bladeoner avatar dborth avatar eigenform avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

libwiigui's Issues

How do I end the GUI?

(I know you told me to post on a forum, but I couldn't find one that could 
"help")

How can I exit the GUI, go to a console?
For example, I'm trying to implement ELF/DOL launching, and to do that, I need 
to exit the GUI, call the launch function, and then restart the GUI.

Also, when I exit, I want to print "Exiting" to the screen.
However, when I exit, the screen turns black for a second, and returns to the 
Homebrew Channel.

Code:
int
main(int argc, char *argv[])
{
    InitVideo(); // Initialize video
    SetupPads(); // Initialize input
    InitAudio(); // Initialize audio
    fatInitDefault(); // Initialize file system
    InitFreeType((u8*)font_ttf, font_ttf_size); // Initialize font system
    InitGUIThreads(); // Initialize GUI

    DefaultSettings();
    MainMenu(MENU_SETTINGS);

    VIDEO_Init();

    WPAD_Init();

    rmode = VIDEO_GetPreferredMode(NULL);

    xfb = MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode));

    console_init(xfb,20,20,rmode->fbWidth,rmode->xfbHeight,rmode->fbWidth*VI_DISPLAY_PIX_SZ);

    VIDEO_Configure(rmode);

    VIDEO_SetNextFramebuffer(xfb);

    VIDEO_SetBlack(FALSE);

    VIDEO_Flush();

    VIDEO_WaitVSync();
    if(rmode->viTVMode&VI_NON_INTERLACE) VIDEO_WaitVSync();

    printf("\x1b[2;0H");

    printf("\n\n\n\n\n\n\nGUI Exited.\n");
    printf("Press any key to exit...\n");

    while(true)
    {
        printf(" ... ");
        sleep(500);

        WPAD_ScanPads();

        u32 pressed = WPAD_ButtonsDown(0);

        if(pressed)
            exit(0);

        VIDEO_WaitVSync();
    }

    return 0;
}

Original issue reported on code.google.com by [email protected] on 21 Jul 2010 at 8:22

libwiigui doesn't compile with libogc svn

What steps will reproduce the problem?
1. Trying to compile the library

What is the expected output? What do you see instead?
Expected successful compiling. Instead gives error about Vector-type.

What version of the product are you using? On what operating system?
libogc rev. 3665 (latest) and libwiigui rev. 24 (latest)

Please provide any additional information below.
In libogc svn the Vector has been renamed to guVector and thus you're
unable to compile current svn of libwiigui with svn of libogc.

Attachment includes patch to rename Vector to guVector


Original issue reported on code.google.com by [email protected] on 14 Jul 2009 at 3:48

Attachments:

Compile Error with 1.04

What steps will reproduce the problem?

1. Install Devkit and the libogc from this page
2. Download libwiigui 1.04 and open the project
3. Compile the project

What is the expected output? What do you see instead?

When I compile the project I get some errors.
Here the output:
> "make" 
video.cpp
c:/Projects/Wii/LibWiiGUI/source/video.cpp: In function 'void
Menu_DrawImg(f32, f32, u16, u16, u8*, f32, f32, f32, u8)':
c:/Projects/Wii/LibWiiGUI/source/video.cpp:263: error: 'guVector' was not
declared in this scope
c:/Projects/Wii/LibWiiGUI/source/video.cpp:263: error: expected `;' before
'axis'
c:/Projects/Wii/LibWiiGUI/source/video.cpp:264: error: 'axis' was not
declared in this scope
c:/Projects/Wii/LibWiiGUI/source/video.cpp: In function 'void
Menu_DrawRectangle(f32, f32, f32, f32, GXColor, u8)':
c:/Projects/Wii/LibWiiGUI/source/video.cpp:306: error: 'guVector' was not
declared in this scope
c:/Projects/Wii/LibWiiGUI/source/video.cpp:306: error: expected `;' before 'v'
c:/Projects/Wii/LibWiiGUI/source/video.cpp:301: warning: unused variable 'fmt'
c:/Projects/Wii/LibWiiGUI/source/video.cpp:302: warning: unused variable 'n'
c:/Projects/Wii/LibWiiGUI/source/video.cpp:303: warning: unused variable 'i'
c:/Projects/Wii/LibWiiGUI/source/video.cpp:304: warning: unused variable 'x2'
c:/Projects/Wii/LibWiiGUI/source/video.cpp:305: warning: unused variable 'y2'
c:/Projects/Wii/LibWiiGUI/source/video.cpp:326: error: expected `}' at end
of input
make[1]: *** [video.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:04


What version of the product are you using? On what operating system?

I used version 1.04 on Windows Vista Home Premium 32Bit


Please provide any additional information below.

With version 1.03 I have no compile errors and all worked fine.

greetings, Strece

Original issue reported on code.google.com by [email protected] on 6 Aug 2009 at 6:12

Over Button Info

hi

Could you guys add a over button info or over browser info. What i mean is
that if you stay over a button or browser option for like 3 secs a small
info appears, like in Wii Systemmenu. 
That would be great.

Thanks in advance.

Original issue reported on code.google.com by [email protected] on 15 Apr 2009 at 7:00

problem when many cursor on screen

using the last libwiigui
encoutered some problem when more than one cursor are on screen
some button don't grow and some others don't click by one cursor but the 
other work
can't find why

here a link to my sources
http://code.google.com/p/savegame-manager-gx/updates/list

that will be very good if u could just help me a little bit
my knowledge are very little and will be very happy if u could explain to 
me where i'm wrong

thx in advance

Original issue reported on code.google.com by [email protected] on 18 Jan 2010 at 11:12

Undefined references in linking

Trying to compile the demo source untouched
Output of make

linking ... libwiigui-demo.elf
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: demo.o: in function `main':
C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/demo.cpp:56:(.text.startup.main+0x22): undefined reference to `font_ttf_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/demo.cpp:56:(.text.startup.main+0x26): undefined reference to `font_ttf_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: menu.o: in function `_ZL16OnScreenKeyboardPct.constprop.0':
C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/menu.cpp:242:(.text._ZL16OnScreenKeyboardPct.constprop.0+0x36): undefined reference to `button_over_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/menu.cpp:242:(.text._ZL16OnScreenKeyboardPct.constprop.0+0x3e): undefined reference to `button_over_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: menu.o: in function `_ZL16MenuSettingsFilev':
C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/menu.cpp:630:(.text._ZL16MenuSettingsFilev+0x16a): undefined reference to `button_over_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/menu.cpp:630:(.text._ZL16MenuSettingsFilev+0x172): undefined reference to `button_over_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: menu.o: in function `_Z12WindowPromptPKcS0_S0_S0_':
C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/menu.cpp:79:(.text._Z12WindowPromptPKcS0_S0_S0_+0x6a): undefined reference to `button_over_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: menu.o:C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/menu.cpp:79: more undefined references to `button_over_pcm_size' follow
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: menu.o: in function `_Z8MainMenui':
C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/menu.cpp:779:(.text._Z8MainMenui+0x19e): undefined reference to `bg_music_ogg_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/menu.cpp:779:(.text._Z8MainMenui+0x1a6): undefined reference to `bg_music_ogg_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: gui_filebrowser.o: in function `_ZN14GuiFileBrowserC2Eii':
C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/libwiigui/gui_filebrowser.cpp:35:(.text._ZN14GuiFileBrowserC2Eii+0xee): undefined reference to `button_over_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/libwiigui/gui_filebrowser.cpp:35:(.text._ZN14GuiFileBrowserC2Eii+0xf6): undefined reference to `button_over_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/libwiigui/gui_filebrowser.cpp:36:(.text._ZN14GuiFileBrowserC2Eii+0x116): undefined reference to `button_click_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/libwiigui/gui_filebrowser.cpp:36:(.text._ZN14GuiFileBrowserC2Eii+0x11e): undefined reference to `button_click_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: gui_keyboard.o: in function `_ZN11GuiKeyboardC2EPcj':
C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/libwiigui/gui_keyboard.cpp:116:(.text._ZN11GuiKeyboardC2EPcj+0x29e): undefined reference to `button_over_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/libwiigui/gui_keyboard.cpp:116:(.text._ZN11GuiKeyboardC2EPcj+0x2a6): undefined reference to `button_over_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/libwiigui/gui_keyboard.cpp:117:(.text._ZN11GuiKeyboardC2EPcj+0x2c6): undefined reference to `button_click_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/libwiigui/gui_keyboard.cpp:117:(.text._ZN11GuiKeyboardC2EPcj+0x2ce): undefined reference to `button_click_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: gui_optionbrowser.o: in function `_ZN16GuiOptionBrowserC2EiiP11_optionlist':
C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/libwiigui/gui_optionbrowser.cpp:32:(.text._ZN16GuiOptionBrowserC2EiiP11_optionlist+0x12e): undefined reference to `button_over_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/libwiigui/gui_optionbrowser.cpp:32:(.text._ZN16GuiOptionBrowserC2EiiP11_optionlist+0x136): undefined reference to `button_over_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/libwiigui/gui_optionbrowser.cpp:33:(.text._ZN16GuiOptionBrowserC2EiiP11_optionlist+0x156): undefined reference to `button_click_pcm_size'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/Cavv/Documents/Progetti/Wii/libwiigui/source/libwiigui/gui_optionbrowser.cpp:33:(.text._ZN16GuiOptionBrowserC2EiiP11_optionlist+0x15e): undefined reference to `button_click_pcm_size'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/devkitPPC/wii_rules:31: /home/Cavv/Documents/Progetti/Wii/libwiigui/libwiigui-demo.elf] Error 1
make: *** [Makefile:101: build] Error 2

ProgressWindow in libwiigui example

Could you may add a simple ProgressWindow into your example application?
I am able to use everything whats in there but the ProgressWindow from
Snes9GX seems to complicated for me at the moment.
In my case I just have a WindowPrompt, the user clicks on "OK" and then I
have a process which returns values from 0 to 100.
So, a little sample code which just adds this (Title, message, ProgressBar)
into a window would be very handy.

Original issue reported on code.google.com by [email protected] on 6 Apr 2009 at 10:52

Linking problems with generated headers

When compiling the project, i get errors like these:

..../libwiigui/source/demo.cpp:56:(.text.startup.main+0x22): undefined reference to `font_ttf_size'
..../powerpc-eabi/bin/ld: /IdeaProjects/WiiTest/libwiigui/source/demo.cpp:56:(.text.startup.main+0x26): undefined reference to `font_ttf_size'
..../powerpc-eabi/bin/ld: menu.o: in function `_ZL16OnScreenKeyboardPct.constprop.0':
..../libwiigui/source/menu.cpp:242:(.text._ZL16OnScreenKeyboardPct.constprop.0+0x36): undefined reference to `button_over_pcm_size'
..../powerpc-eabi/bin/ld: /IdeaProjects/WiiTest/libwiigui/source/menu.cpp:242:(.text._ZL16OnScreenKeyboardPct.constprop.0+0x3e): undefined reference to `button_over_pcm_size'
..../powerpc-eabi/bin/ld: menu.o: in function `_ZL16MenuSettingsFilev':
..../libwiigui/source/menu.cpp:630:(.text._ZL16MenuSettingsFilev+0x16a): undefined reference to `button_over_pcm_size'
..../powerpc-eabi/bin/ld: /IdeaProjects/WiiTest/libwiigui/source/menu.cpp:630:(.text._ZL16MenuSettingsFilev+0x172): undefined reference to `button_over_pcm_size'

I think the problem is that the generated header files are nowhere included in the source code. But it had to work before, so am I doing something wrong?

'MAXPATHLEN' was not declared in this scope

I can't compile the example, because I got this issue
filebrowser.cpp
In file included from c:/libwiigui/source/filebrowser.cpp:18:0:
c:/libwiigui/source/filebrowser.h:21:11: error: 'MAXPATHLEN' was not declared in this scope
char dir[MAXPATHLEN]; // directory path of browserList

Then of this, a lot of errors are displayed:
c:/libwiigui/source/filebrowser.cpp: In function 'int UpdateDirName()':
c:/libwiigui/source/filebrowser.cpp:66:29: error: 'struct BROWSERINFO' has no member named 'dir'
sprintf(temp,"%s",browser.dir);
^~~
c:/libwiigui/source/filebrowser.cpp:75:25: error: 'struct BROWSERINFO' has no member named 'dir'
size = strlen(browser.dir) - size - 1;
^~~
c:/libwiigui/source/filebrowser.cpp:76:11: error: 'struct BROWSERINFO' has no member named 'dir'
browser.dir[size] = 0;
^~~
c:/libwiigui/source/filebrowser.cpp:84:23: error: 'struct BROWSERINFO' has no member named 'dir'
if ((strlen(browser.dir)+1+strlen(browserList[browser.selIndex].filename)) < MAXPATHLEN)
^~~
c:/libwiigui/source/filebrowser.cpp:84:80: error: 'MAXPATHLEN' was not declared in this scope
if ((strlen(browser.dir)+1+strlen(browserList[browser.selIndex].filename)) < MAXPATHLEN)
^~~~~~~~~~
c:/libwiigui/source/filebrowser.cpp:87:20: error: 'struct BROWSERINFO' has no member named 'dir'
sprintf(browser.dir, "%s/%s",browser.dir, browserList[browser.selIndex].filename);
^~~
c:/libwiigui/source/filebrowser.cpp:87:41: error: 'struct BROWSERINFO' has no member named 'dir'
sprintf(browser.dir, "%s/%s",browser.dir, browserList[browser.selIndex].filename);
^~~
c:/libwiigui/source/filebrowser.cpp: In function 'int FileSortCallback(const void*, const void*)':
c:/libwiigui/source/filebrowser.cpp:121:79: error: 'stricmp' was not declared in this scope
return stricmp(((BROWSERENTRY *)f1)->filename, ((BROWSERENTRY *)f2)->filename);
^
c:/libwiigui/source/filebrowser.cpp: In function 'int ParseDirectory()':
c:/libwiigui/source/filebrowser.cpp:131:15: error: 'MAXPATHLEN' was not declared in this scope
char fulldir[MAXPATHLEN];
^~~~~~~~~~
c:/libwiigui/source/filebrowser.cpp:138:10: error: 'fulldir' was not declared in this scope
sprintf(fulldir, "%s%s", rootdir, browser.dir); // add currentDevice to path
^~~~~~~
c:/libwiigui/source/filebrowser.cpp:138:44: error: 'struct BROWSERINFO' has no member named 'dir'
sprintf(fulldir, "%s%s", rootdir, browser.dir); // add currentDevice to path
^~~
c:/libwiigui/source/filebrowser.cpp:144:19: error: 'struct BROWSERINFO' has no member named 'dir'
sprintf(browser.dir,"/");
^~~
c:/libwiigui/source/filebrowser.cpp: In function 'int BrowseDevice()':
c:/libwiigui/source/filebrowser.cpp:223:18: error: 'struct BROWSERINFO' has no member named 'dir'
sprintf(browser.dir, "/");
^~~
c:/libwiigui/source/filebrowser.cpp: In function 'int UpdateDirName()':
c:/libwiigui/source/filebrowser.cpp:95:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[1]: *** [filebrowser.o] Error 1
"make": *** [build] Error 2

Libwiigui incompatible with balance board ?

Hi all, i may find a bug in libwiigui.
Before i want to say that i'm running the last rev of devkit pro (r21) and 
libogc 1.8.3 plus all my portlibs etc are up to date.

Firstly, i've made a little program (template.c attachment) with the strict 
minimum to make the balance board work (helloworld template + bb stuff)
I print out the weight and it works just fine.

Secondly, i took the libwiigui template and replace the content of the while 
loop in MainMenu (menu.cpp) by the bb stuff. The result is really out of sense 
because the weight give approximatively -232kg.

Since the bb code stuff is exactly the same i assume that the problem is in 
libwiigui (some kind of interference or i don't know) but i may be wrong.
Please let me know if it 

Original issue reported on code.google.com by [email protected] on 18 Jun 2010 at 9:44

Attachments:

PATCH - Fix limit of 2^8 GuiWindow child elements

While in some places GuiWindow seem to accept 2^32 children [1], in most
places the maximum number of children is implicitely 2^8 [2].

Since 2^8 was insufficient for my need (2^16 would have been enough tho), i
figured it might eventually also be the case for others. Thus, here's a
patch that brings up the limit to 2^16. (I doubt anyone will need 2^32
elements...)

[1] e.g.GetGuiElementAt(u32)
[2] e.g. Draw() and Update()

What version of the product are you using? On what operating system?
The patch was created against SVN HEAD (r49). I tested my code on my Wii.

Original issue reported on code.google.com by [email protected] on 19 Apr 2010 at 6:36

Attachments:

Wishlist: Port to SDL

I'm a lousy GUI designer, and therefore get a lot of requests for switching
to libwiigui, which absolutely everyone loves!

The problem I have is that I'm also a lousy coder and need a platform with
good tool support (debuggers etc) to develop on. I therefore try to make
all my programs build for both Wii and Linux, which is no problem since I'm
using SDL. Unfortunately, libwiigui isn't using SDL, so I can't easily keep
both debuggability and a nice GUI, and my users will keep on nagging me for
this.

So therefore, if possible and if you feel that you have the time: Porting
libwiigui to SDL and making it buildable on the host would be very nice!

Original issue reported on code.google.com by [email protected] on 26 Oct 2009 at 9:19

libpng issues...

Before I "installed" libpng to devkitPro, I kept getting "could not find png.h" 
errors.

So, I downloaded the .h and .c files in libpng-1.4.1 to the 
devkitPPC\powerpc-eabi-includes folder (i had no portlibs folder).

I compiled again, and this time, I got this error:
pngu.c
In file included from 
c:/Users/Administrator/Downloads/libwiigui-1.05/source/pngu.c:15:
c:\devkitpro\devkitppc\bin\../lib/gcc/powerpc-eabi/4.4.3/../../../../powerpc-eab
i/include/png.h:1137: error: expected specifier-qualifier-list before 'z_stream'

Solution please?

-Tony

Original issue reported on code.google.com by [email protected] on 18 Jul 2010 at 9:17

Question

Hi,

Sorry to create an issue, but I didn't find another
way to contact you. There is another way to reach you? 

I started developing a homebrew for wii and found it very interesting
this library. I managed to make great progress. Thank you very much
to develop this library.

I have a question, I looked at the api documentation and not found. 
I was trying to draw more than one image at a GuiWindow, there is such
possibility?

Indeed I was wanting to put a background image with a watermark of
another image, on a given image x, y positions. (Example: screenwidth -
watermarkWidth - 10, screenheigth - watermarHeight - 10)

I believe it is possible to do this using a temporary image buffer,
But I could not accomplish.

Sorry for my bad english.

Thanks

Original issue reported on code.google.com by [email protected] on 15 May 2010 at 8:55

Make the GuiOptionBrowser scrollbar draggable

What steps will reproduce the problem?
1. Make a GuiOptionBrowser
2. Try to drag the scrollbar

What is the expected output? What do you see instead?
It should scroll like in any normal GUI, instead, nothing happens

What version of the product are you using? On what operating system?
The SVN on the Wii

Please provide any additional information below.
I've been using Wiimote 2, since my Wiimotes are messed up and they keep 
getting ordered wrongly.

Original issue reported on code.google.com by [email protected] on 12 Apr 2009 at 9:05

Nyko Wing Wireless Classic Controller Support


Nyko recently released a cordless version of the Classic Controller which
currently is not recognized by any homebrew applications. Any chance this
can be remedied? (I'd assume it's just an item code that needs to be added
to a list of recognized attachments)

FCC ID sqo87050r03

Serial # 87050-e14

Original issue reported on code.google.com by [email protected] on 4 Jul 2009 at 3:12

Grayscale for Image Class

How about a Grayscale method for the GuiImage Class? If you would like to
add it here is how i did it:

void GuiImage::SetGrayscale(void)
{
    GXColor color;
    u32 offset, gray;

    for(int x = 0; x < width; x++) {
        for(int y = 0; y < height; y++) {
            offset = (((y >> 2)<<4)*this->GetWidth()) + ((x >> 2)<<6) +
(((y%4 << 2) + x%4 ) << 1);
            color.r = *(image+offset+1);
            color.g = *(image+offset+32);
            color.b = *(image+offset+33);

            gray = (77*color.r + 150*color.g + 28*color.b)/255;

            *(image+offset+1) = gray;
            *(image+offset+32) = gray;
            *(image+offset+33) = gray;


        }
    }
}

Original issue reported on code.google.com by [email protected] on 10 Jul 2009 at 4:20

Compilation Error

I'm trying to compile the code but I'm getting this error:

oggplayer.c
C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/oggplayer.c:32:10: fatal error: tremor/ivorbiscodec.h: No such file or directory
32 | #include <tremor/ivorbiscodec.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [/opt/devkitpro/devkitPPC/base_rules:18: oggplayer.o] Error 1
make: *** [Makefile:101: build] Error 2

Not sure if this goes here or with libogc

This is actually related to Snes9xGx for the Wii; this is regarding the tinny 
sound issue. Snes9xgx emulates snes audio at 32000Hz whereas when going to the 
menu (home button), it's fixed at 48000Hz. When you go back to the game (or the 
wii system menu) the sound becomes "tinny" or "raspy" (until you reset the wii 
or switch back and forth in the menu). Dborth (the author of Snes9xGx) has told 
me on numerous occasions that this is something that he cannot fix on his end, 
that it's an issue with libwii/libogc. Can this issue be resolved at all?





Original issue reported on code.google.com by [email protected] on 10 Jun 2010 at 6:05

Scrambled image from SD

What steps will reproduce the problem?
1. loading a png file from sd card with fopen

What is the expected output? What do you see instead?
Should show a clean image but only shows it scrambled

What version of the product are you using? On what operating system?
The actual SVN

Please provide any additional information below.

That´s how i try to doing it at the moment

u8 *imgsd;
static u32 imgsd_size;

int loadimg(char * filename)
{
    FILE *fp;
    u32 filesize;
    u32 ret;
    char filepath[128];

    ret = fatInitDefault();
    if (!ret) {
        return 0;
    }
    sprintf(filepath,filename);

    fp = fopen(filepath, "rb");
    if (!fp) {
        return 0;
    }
    fseek(fp, 0, SEEK_END);
    filesize = ftell(fp);
    fseek(fp, 0, SEEK_SET);

    imgsd= (u8*)malloc (sizeof(u8)*filesize);
    if (imgsd== 0)
    {
        //printf("ERROR: Out of memory\n");
        return 0;
    }

    memset(imgsd,0,filesize);
    if(cover == 0){
        fclose(fp);
        return 0;
    }
    char size[30];

    ret = fread(imgsd, 1, filesize, fp);
    if(ret != filesize){    
        free(imgsd);
        fclose(fp);
        return 0;
    }
    imgsd_size = filesize;
return 1;
}


static int menu()
{
...
    if (loadimg("noimage") != 0)
    {
    GuiImageData coverimgdata((const u8*)cover);
        CoverImg = new GuiImage(&coverimgdata);
    CoverImg->SetAlignment(ALIGN_LEFT, ALIGN_TOP);
    CoverImg->SetPosition(50,200);
    }
...
}

Original issue reported on code.google.com by [email protected] on 13 Apr 2009 at 4:08

Memory management in gui_text.cpp

Several times in gui_text.cpp, memory is released using delete instead of 
delete[]. I'm not sure if this is leaking memory or corrupting the heap, 
but it's almost certainly not doing anything good.

Original issue reported on code.google.com by [email protected] on 2 Sep 2009 at 8:33

Can't compile libwiigui - ft2build.h is missing

Steps:

1. Extracted libwiigui's zipfile to a folder called libwiigui 
2. Extracted the second zipfile somewhere else and copied everything to
respective folders on $DEVKITPRO/libogc/
3. On libwiigui/ , when trying to compile it, this happened:

$ make
audio.cpp
demo.cpp
In file included from /home/wendel/devkitpro/libwiigui/source/demo.cpp:18:
/home/wendel/devkitpro/libwiigui/source/FreeTypeGX.h:155:22: warning:
ft2build.h: No such file or directory
/home/wendel/devkitpro/libwiigui/source/FreeTypeGX.h:156:10: error:
#include expects "FILENAME" or <FILENAME>
/home/wendel/devkitpro/libwiigui/source/FreeTypeGX.h:157:10: error:
#include expects "FILENAME" or <FILENAME>
make[1]: *** [demo.o] Error 1
make: *** [build] Error 2


I can't find this ft2build.h file anywhere on my devkit or on these
extracted zipfiles. Looking on lines 155~157 of FreeTypeGX.h it looks like
it tries to include a file which name should be #define'd as FT_FREETYPE_H.
The respective #define is on include/freetype/config/ftheader.h , line 173;
and this ftheader.h file isn't #include'd anywhere on this project.

Original issue reported on code.google.com by [email protected] on 4 Apr 2009 at 8:54

Linking problems

I tried to compile libwiigui and it compiled the files
but when it links to elf file it displays this:
C:/devkitPro/portlibs/ppc/lib\libvorbisidec.a(info.o): In function tagcompare': info.c:(.text+0x40): undefined reference to __locale_ctype_ptr'
info.c:(.text+0x70): undefined reference to __locale_ctype_ptr' info.c:(.text+0x90): undefined reference to __locale_ctype_ptr'
C:/devkitPro/portlibs/ppc/lib\libfreetype.a(ftbzip2.o): In function ft_bzip2_stream_close': ftbzip2.c:(.text+0x3c): undefined reference to BZ2_bzDecompressEnd'
C:/devkitPro/portlibs/ppc/lib\libfreetype.a(ftbzip2.o): In function ft_bzip2_file_fill_output': ftbzip2.c:(.text+0x110): undefined reference to BZ2_bzDecompress'
C:/devkitPro/portlibs/ppc/lib\libfreetype.a(ftbzip2.o): In function ft_bzip2_stream_io': ftbzip2.c:(.text+0x3bc): undefined reference to BZ2_bzDecompressEnd'
ftbzip2.c:(.text+0x3f4): undefined reference to BZ2_bzDecompressInit' C:/devkitPro/portlibs/ppc/lib\libfreetype.a(ftbzip2.o): In function FT_Stream_OpenBzip2':
ftbzip2.c:(.text+0x668): undefined reference to `BZ2_bzDecompressInit'
collect2: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/devkitPPC/wii_rules:25: /c/Libwiigui/libwiigui-demo.elf] Error 1
make: *** [Makefile:101: build] Error 2

is there a way to fix this?

Possible patch

A user has suggested that i apply a patch to the video.cpp file in
libwiigui for my wiixplore project but the patch seems to cause a compile
error. Could you check it for me.


Original issue reported on code.google.com by [email protected] on 26 Jul 2009 at 12:26

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.