00001 /* 00002 * This file is part of liberscribble. 00003 * 00004 * liberscribble is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * liberscribble is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00023 #include "scbconfig.h" 00024 00025 //======================================================================== 00026 // param of fast draw 00027 static ScbFastDrawParam s_fast_draw_param; 00028 void scb_cfg_init_fast_draw_param() 00029 { 00030 s_fast_draw_param.time = SCB_DEF_FAST_DRAW_TIME; 00031 s_fast_draw_param.count = SCB_DEF_FAST_DRAW_COUNT; 00032 } 00033 00034 void scb_cfg_set_fast_draw_param(ScbFastDrawParamPtr ptr) 00035 { 00036 if (ptr) 00037 { 00038 s_fast_draw_param.time = ptr->time; 00039 s_fast_draw_param.count = ptr->count; 00040 } 00041 } 00042 00043 void scb_cfg_get_fast_draw_param(ScbFastDrawParamPtr ptr) 00044 { 00045 if (ptr) 00046 { 00047 ptr->time = s_fast_draw_param.time; 00048 ptr->count = s_fast_draw_param.count; 00049 } 00050 }
1.5.6