Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
libbluray
Commits
e4f08771
Commit
e4f08771
authored
Oct 14, 2010
by
hpi1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_render_page(): removed page_id and selected_button_id params
parent
bfea2a24
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/libbluray/decoders/graphics_controller.c
src/libbluray/decoders/graphics_controller.c
+6
-7
No files found.
src/libbluray/decoders/graphics_controller.c
View file @
e4f08771
...
...
@@ -270,14 +270,15 @@ static void _render_button(GRAPHICS_CONTROLLER *gc, BD_IG_BUTTON *button, BD_PG_
}
static
void
_render_page
(
GRAPHICS_CONTROLLER
*
gc
,
unsigned
page_id
,
unsigned
selected_button_id
,
unsigned
activated_button_id
,
unsigned
activated_button_id
,
GC_NAV_CMDS
*
cmds
)
{
PG_DISPLAY_SET
*
s
=
gc
->
igs
;
BD_IG_PAGE
*
page
=
NULL
;
BD_PG_PALETTE
*
palette
=
NULL
;
unsigned
page_id
=
bd_psr_read
(
gc
->
regs
,
PSR_MENU_PAGE_ID
);
unsigned
ii
;
unsigned
selected_button_id
=
bd_psr_read
(
gc
->
regs
,
PSR_SELECTED_BUTTON_ID
);
if
(
s
->
ics
->
interactive_composition
.
ui_model
==
1
&&
!
gc
->
popup_visible
)
{
TRACE
(
"_render_page(): popup menu not visible
\n
"
);
...
...
@@ -414,7 +415,7 @@ static void _user_input(GRAPHICS_CONTROLLER *gc, bd_vk_key_e key, GC_NAV_CMDS *c
bd_psr_write
(
gc
->
regs
,
PSR_SELECTED_BUTTON_ID
,
new_btn_id
);
_render_page
(
gc
,
page_id
,
new_btn_id
,
activated_btn_id
,
cmds
);
_render_page
(
gc
,
activated_btn_id
,
cmds
);
}
}
...
...
@@ -492,7 +493,7 @@ static void _set_button_page(GRAPHICS_CONTROLLER *gc, uint32_t param, GC_NAV_CMD
gc
->
ig_drawn
=
0
;
_render_page
(
gc
,
page_id
,
button_id
,
-
1
,
cmds
);
_render_page
(
gc
,
0xffff
,
cmds
);
}
void
gc_run
(
GRAPHICS_CONTROLLER
*
gc
,
gc_ctrl_e
ctrl
,
uint32_t
param
,
GC_NAV_CMDS
*
cmds
)
...
...
@@ -532,8 +533,6 @@ void gc_run(GRAPHICS_CONTROLLER *gc, gc_ctrl_e ctrl, uint32_t param, GC_NAV_CMDS
case
GC_CTRL_NOP
:
_render_page
(
gc
,
bd_psr_read
(
gc
->
regs
,
PSR_MENU_PAGE_ID
),
bd_psr_read
(
gc
->
regs
,
PSR_SELECTED_BUTTON_ID
),
0xffff
,
cmds
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment