gtkdata.cxx (9f62ea84) | gtkdata.cxx (93ed1f29) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 350 unchanged lines hidden (view full) --- 359 break 360#define MAP_BUILTIN( vcl_name, gdk_name ) \ 361 case vcl_name: \ 362 pCursor = gdk_cursor_new_for_display( m_pGdkDisplay, gdk_name ); \ 363 break 364 365GdkCursor *GtkSalDisplay::getCursor( PointerStyle ePointerStyle ) 366{ | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 350 unchanged lines hidden (view full) --- 359 break 360#define MAP_BUILTIN( vcl_name, gdk_name ) \ 361 case vcl_name: \ 362 pCursor = gdk_cursor_new_for_display( m_pGdkDisplay, gdk_name ); \ 363 break 364 365GdkCursor *GtkSalDisplay::getCursor( PointerStyle ePointerStyle ) 366{ |
367 if( ePointerStyle > POINTER_COUNT ) | 367 if (ePointerStyle >= POINTER_COUNT) |
368 return NULL; 369 370 if ( !m_aCursors[ ePointerStyle ] ) 371 { 372 GdkCursor *pCursor = NULL; 373 374 switch( ePointerStyle ) 375 { --- 666 unchanged lines hidden --- | 368 return NULL; 369 370 if ( !m_aCursors[ ePointerStyle ] ) 371 { 372 GdkCursor *pCursor = NULL; 373 374 switch( ePointerStyle ) 375 { --- 666 unchanged lines hidden --- |