mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Layout should not be called until after a sizer is inserted into its parent. This fixes the "gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17" type console warnings that are annoying on linux. If there are issues with this on other platforms let me know, but there shouldn't be.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6459 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
3ebd09efc9
commit
cefaa393e6
3 changed files with 7 additions and 29 deletions
|
@ -37,7 +37,6 @@ u32 Timer::GetTimeMs()
|
|||
#ifdef _WIN32
|
||||
return timeGetTime();
|
||||
#else
|
||||
printf("using gettimeofday\n");
|
||||
struct timeval t;
|
||||
(void)gettimeofday(&t, NULL);
|
||||
return ((u32)(t.tv_sec * 1000 + t.tv_usec / 1000));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue