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

Core: Kill off a few Host interface functions. #740

Merged
merged 7 commits into from Aug 9, 2014

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented Aug 5, 2014

Kills off some of the Host interface functions. Many of these are a result of not using the event system in wx correctly, or are just used as a quick kludge.

@delroth
Copy link
Member

delroth commented Aug 5, 2014

Probably need to update MainNoGUI and StubHost as well to remove this function.

@lioncash
Copy link
Member Author

lioncash commented Aug 5, 2014

Wait a sec on merging this, might be able to kill off a third one here.

EDIT: This is currently ongoing. This will be OK to merge once all the GL interfaces have host calls killed off.

@lioncash lioncash changed the title Core: Kill off Host_UpdateBreakPointView() Core: Kill off a few Host interface functions. Aug 5, 2014
@Parlane
Copy link
Member

Parlane commented Aug 5, 2014

@dolphin-emu-bot rebuild

@booto
Copy link
Contributor

booto commented Aug 5, 2014

Tested on Ubuntu 14.04: still builds & runs.

@lioncash
Copy link
Member Author

lioncash commented Aug 5, 2014

Alright, thanks.
On Aug 5, 2014 9:50 AM, "booto" notifications@github.com wrote:

Tested on Ubuntu 14.04: still builds & runs.


Reply to this email directly or view it on GitHub
#740 (comment).

@magcius
Copy link
Member

magcius commented Aug 8, 2014

Looks good.

@magcius
Copy link
Member

magcius commented Aug 8, 2014

OK, LGTM.

@@ -81,7 +73,7 @@ void *cXInterface::CreateWindow(void)

// Create the window
GLWin.win = XCreateWindow(GLWin.evdpy, GLWin.parent,
GLWin.x, GLWin.y, GLWin.width, GLWin.height, 0,
0, 0, 1, 1, 0,

This comment was marked as off-topic.

Uses wxWidgets event propagation to the parent window which then appropriately handles the breakpoint list updating.
This was actually never used as far as I can tell. There was no wx event handling done whatsoever for the global ID, So this is basically a dead function.
Just use the Windows API to accomplish the same thing (this is what is done in Update()).

This makes the backing window handle the correct data-type for Windows for easier use in function calls.
Just uses platform-specific ways to do the same thing.
Also remove x, y, width and height from the GLInterface, since it's only
used in GLX, which no longer uses them
lioncash added a commit that referenced this pull request Aug 9, 2014
Core: Kill off a few Host interface functions.
@lioncash lioncash merged commit e266635 into dolphin-emu:master Aug 9, 2014
@lioncash lioncash deleted the host branch August 9, 2014 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants