equal
deleted
inserted
replaced
66 } |
66 } |
67 } |
67 } |
68 return SendReceive(EAlfForceSwRendering, TIpcArgs(aEnabled)); |
68 return SendReceive(EAlfForceSwRendering, TIpcArgs(aEnabled)); |
69 } |
69 } |
70 |
70 |
|
71 TInt RAlfDirectClient::GetSizeAndRotation(TSize& aSize, TInt& aRotation) |
|
72 { |
|
73 if (!Handle()) |
|
74 { |
|
75 TRAPD(err, OpenL()); |
|
76 if (err) |
|
77 { |
|
78 return err; |
|
79 } |
|
80 } |
|
81 |
|
82 TPckg<TSize> sizePckg(aSize); |
|
83 TPckg<TInt> rotationPckg(aRotation); |
|
84 return SendReceive(EAlfGetSizeAndRotation, TIpcArgs(&sizePckg, &rotationPckg)); |
|
85 } |
|
86 |
|
87 TInt RAlfDirectClient::ReadPixels(TInt aBitmapHandle) |
|
88 { |
|
89 if (!Handle()) |
|
90 { |
|
91 TRAPD(err, OpenL()); |
|
92 if (err) |
|
93 { |
|
94 return err; |
|
95 } |
|
96 } |
|
97 |
|
98 return SendReceive(EAlfReadPixels, TIpcArgs(aBitmapHandle)); |
|
99 } |
|
100 |
|
101 EXPORT_C TInt RAlfDirectClient::BlankScreen( TBool aEnabled ) |
|
102 { |
|
103 if (!Handle()) |
|
104 { |
|
105 TRAPD(err, OpenL()); |
|
106 if (err) |
|
107 { |
|
108 return err; |
|
109 } |
|
110 } |
|
111 return SendReceive(EAlfBlankScreen, TIpcArgs(aEnabled)); |
|
112 } |
|
113 |
71 // --------------------------------------------------------------------------- |
114 // --------------------------------------------------------------------------- |
72 // Constructor |
115 // Constructor |
73 // --------------------------------------------------------------------------- |
116 // --------------------------------------------------------------------------- |
74 // |
117 // |
75 EXPORT_C RAlfDirectClient::RAlfDirectClient() |
118 EXPORT_C RAlfDirectClient::RAlfDirectClient() |