5252
5353static void nxeg_redraw (NXEGWINDOW hwnd , FAR const struct nxgl_rect_s * rect ,
5454 bool morem , FAR void * arg );
55- static void nxeg_position (NXEGWINDOW hwnd , FAR const struct nxgl_size_s * size ,
55+ static void nxeg_position (NXEGWINDOW hwnd ,
56+ FAR const struct nxgl_size_s * size ,
5657 FAR const struct nxgl_point_s * pos ,
5758 FAR const struct nxgl_rect_s * bounds ,
5859 FAR void * arg );
5960#ifdef CONFIG_NX_XYINPUT
60- static void nxeg_mousein (NXEGWINDOW hwnd , FAR const struct nxgl_point_s * pos ,
61+ static void nxeg_mousein (NXEGWINDOW hwnd ,
62+ FAR const struct nxgl_point_s * pos ,
6163 uint8_t buttons , FAR void * arg );
6264#endif
6365
6466#ifndef CONFIG_EXAMPLES_NX_RAWWINDOWS
65- static void nxeg_tbredraw (NXEGWINDOW hwnd , FAR const struct nxgl_rect_s * rect ,
67+ static void nxeg_tbredraw (NXEGWINDOW hwnd ,
68+ FAR const struct nxgl_rect_s * rect ,
6669 bool morem , FAR void * arg );
67- static void nxeg_tbposition (NXEGWINDOW hwnd , FAR const struct nxgl_size_s * size ,
70+ static void nxeg_tbposition (NXEGWINDOW hwnd ,
71+ FAR const struct nxgl_size_s * size ,
6872 FAR const struct nxgl_point_s * pos ,
6973 FAR const struct nxgl_rect_s * bounds ,
7074 FAR void * arg );
7175#ifdef CONFIG_NX_XYINPUT
72- static void nxeg_tbmousein (NXEGWINDOW hwnd , FAR const struct nxgl_point_s * pos ,
73- uint8_t buttons , FAR void * arg );
76+ static void nxeg_tbmousein (NXEGWINDOW hwnd ,
77+ FAR const struct nxgl_point_s * pos ,
78+ uint8_t buttons , FAR void * arg );
7479#endif
7580#endif
7681
@@ -137,6 +142,7 @@ static inline void nxeg_fillwindow(NXEGWINDOW hwnd,
137142 printf ("nxeg_fillwindow: nxtk_fillwindow failed: %d\n" , errno );
138143 }
139144#endif
145+
140146#ifdef CONFIG_NX_KBD
141147 nxeg_filltext (hwnd , rect , st );
142148#endif
@@ -148,8 +154,8 @@ static inline void nxeg_fillwindow(NXEGWINDOW hwnd,
148154
149155#ifndef CONFIG_EXAMPLES_NX_RAWWINDOWS
150156static inline void nxeg_filltoolbar (NXTKWINDOW htb ,
151- FAR const struct nxgl_rect_s * rect ,
152- nxgl_mxpixel_t color [CONFIG_NX_NPLANES ])
157+ FAR const struct nxgl_rect_s * rect ,
158+ nxgl_mxpixel_t color [CONFIG_NX_NPLANES ])
153159{
154160 int ret ;
155161
@@ -181,7 +187,8 @@ static void nxeg_redraw(NXEGWINDOW hwnd, FAR const struct nxgl_rect_s *rect,
181187 * Name: nxeg_position
182188 ****************************************************************************/
183189
184- static void nxeg_position (NXEGWINDOW hwnd , FAR const struct nxgl_size_s * size ,
190+ static void nxeg_position (NXEGWINDOW hwnd ,
191+ FAR const struct nxgl_size_s * size ,
185192 FAR const struct nxgl_point_s * pos ,
186193 FAR const struct nxgl_rect_s * bounds ,
187194 FAR void * arg )
@@ -190,15 +197,18 @@ static void nxeg_position(NXEGWINDOW hwnd, FAR const struct nxgl_size_s *size,
190197
191198 /* Report the position */
192199
193- printf ("nxeg_position%d: hwnd=%p size=(%d,%d) pos=(%d,%d) bounds={(%d,%d),(%d,%d)}\n" ,
200+ printf ("nxeg_position%d: hwnd=%p size=(%d,%d) pos=(%d,%d) "
201+ "bounds={(%d,%d),(%d,%d)}\n" ,
194202 st -> wnum , hwnd , size -> w , size -> h , pos -> x , pos -> y ,
195203 bounds -> pt1 .x , bounds -> pt1 .y , bounds -> pt2 .x , bounds -> pt2 .y );
196204
197205 /* Have we picked off the window bounds yet? */
198206
199207 if (!b_haveresolution )
200208 {
201- /* Save the window limits (these should be the same for all places and all windows */
209+ /* Save the window limits (these should be the same for all places
210+ * and all windows.
211+ */
202212
203213 g_xres = bounds -> pt2 .x ;
204214 g_yres = bounds -> pt2 .y ;
@@ -228,7 +238,8 @@ static void nxeg_mousein(NXEGWINDOW hwnd, FAR const struct nxgl_point_s *pos,
228238 ****************************************************************************/
229239
230240#ifndef CONFIG_EXAMPLES_NX_RAWWINDOWS
231- static void nxeg_tbredraw (NXEGWINDOW hwnd , FAR const struct nxgl_rect_s * rect ,
241+ static void nxeg_tbredraw (NXEGWINDOW hwnd ,
242+ FAR const struct nxgl_rect_s * rect ,
232243 bool more , FAR void * arg )
233244{
234245 FAR struct nxeg_state_s * st = (FAR struct nxeg_state_s * )arg ;
@@ -245,16 +256,18 @@ static void nxeg_tbredraw(NXEGWINDOW hwnd, FAR const struct nxgl_rect_s *rect,
245256 ****************************************************************************/
246257
247258#ifndef CONFIG_EXAMPLES_NX_RAWWINDOWS
248- static void nxeg_tbposition (NXEGWINDOW hwnd , FAR const struct nxgl_size_s * size ,
249- FAR const struct nxgl_point_s * pos ,
250- FAR const struct nxgl_rect_s * bounds ,
251- FAR void * arg )
259+ static void nxeg_tbposition (NXEGWINDOW hwnd ,
260+ FAR const struct nxgl_size_s * size ,
261+ FAR const struct nxgl_point_s * pos ,
262+ FAR const struct nxgl_rect_s * bounds ,
263+ FAR void * arg )
252264{
253265 FAR struct nxeg_state_s * st = (FAR struct nxeg_state_s * )arg ;
254266
255267 /* Report the position */
256268
257- printf ("nxeg_ptbosition%d: hwnd=%p size=(%d,%d) pos=(%d,%d) bounds={(%d,%d),(%d,%d)}\n" ,
269+ printf ("nxeg_ptbosition%d: hwnd=%p size=(%d,%d) pos=(%d,%d) "
270+ "bounds={(%d,%d),(%d,%d)}\n" ,
258271 st -> wnum , hwnd , size -> w , size -> h , pos -> x , pos -> y ,
259272 bounds -> pt1 .x , bounds -> pt1 .y , bounds -> pt2 .x , bounds -> pt2 .y );
260273}
@@ -266,8 +279,9 @@ static void nxeg_tbposition(NXEGWINDOW hwnd, FAR const struct nxgl_size_s *size,
266279
267280#ifndef CONFIG_EXAMPLES_NX_RAWWINDOWS
268281#ifdef CONFIG_NX_XYINPUT
269- static void nxeg_tbmousein (NXEGWINDOW hwnd , FAR const struct nxgl_point_s * pos ,
270- uint8_t buttons , FAR void * arg )
282+ static void nxeg_tbmousein (NXEGWINDOW hwnd ,
283+ FAR const struct nxgl_point_s * pos ,
284+ uint8_t buttons , FAR void * arg )
271285{
272286 FAR struct nxeg_state_s * st = (FAR struct nxeg_state_s * )arg ;
273287
@@ -291,7 +305,7 @@ FAR void *nx_listenerthread(FAR void *arg)
291305
292306 /* Process events forever */
293307
294- for (;; )
308+ for (; ; )
295309 {
296310 /* Handle the next event. If we were configured blocking, then
297311 * we will stay right here until the next event is received. Since
0 commit comments