mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 00:21:05 +00:00
Restore last defined variate
Signed-off-by: JamePeng <jame_peng@sina.com>
This commit is contained in:
parent
80a82acf55
commit
8adfde4443
@ -84,6 +84,7 @@ ResultCode ConversionConfiguration::SetStandardCoefficient(StandardCoefficient s
|
|||||||
|
|
||||||
static void SetInputFormat(Service::Interface* self) {
|
static void SetInputFormat(Service::Interface* self) {
|
||||||
u32* cmd_buff = Kernel::GetCommandBuffer();
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
||||||
|
|
||||||
conversion.input_format = static_cast<InputFormat>(cmd_buff[1]);
|
conversion.input_format = static_cast<InputFormat>(cmd_buff[1]);
|
||||||
LOG_DEBUG(Service_Y2R, "called input_format=%hhu", conversion.input_format);
|
LOG_DEBUG(Service_Y2R, "called input_format=%hhu", conversion.input_format);
|
||||||
|
|
||||||
@ -93,7 +94,8 @@ static void SetInputFormat(Service::Interface* self) {
|
|||||||
static void GetInputFormat(Service::Interface* self) {
|
static void GetInputFormat(Service::Interface* self) {
|
||||||
u32* cmd_buff = Kernel::GetCommandBuffer();
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
||||||
|
|
||||||
LOG_DEBUG(Service_Y2R, "Get input_format=%hhu", conversion.input_format);
|
InputFormat input_format = conversion.input_format;
|
||||||
|
LOG_DEBUG(Service_Y2R, "Get input_format=%hhu", input_format);
|
||||||
|
|
||||||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||||
cmd_buff[2] = static_cast<u32>(conversion.input_format);
|
cmd_buff[2] = static_cast<u32>(conversion.input_format);
|
||||||
@ -111,7 +113,8 @@ static void SetOutputFormat(Service::Interface* self) {
|
|||||||
static void GetOutputFormat(Service::Interface* self) {
|
static void GetOutputFormat(Service::Interface* self) {
|
||||||
u32* cmd_buff = Kernel::GetCommandBuffer();
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
||||||
|
|
||||||
LOG_DEBUG(Service_Y2R, "Get output_format=%hhu", conversion.output_format);
|
OutputFormat output_format = conversion.output_format;
|
||||||
|
LOG_DEBUG(Service_Y2R, "Get output_format=%hhu", output_format);
|
||||||
|
|
||||||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||||
cmd_buff[2] = static_cast<u32>(conversion.output_format);
|
cmd_buff[2] = static_cast<u32>(conversion.output_format);
|
||||||
|
Loading…
Reference in New Issue
Block a user