Mercurial > dwindows
comparison os2/dw.c @ 1829:dc343df88ad8
VAC is missing snprintf().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 30 Oct 2012 14:40:48 +0000 |
parents | e0df1916b054 |
children | 0123e8aec5b4 |
comparison
equal
deleted
inserted
replaced
1828:e0df1916b054 | 1829:dc343df88ad8 |
---|---|
7115 if(backrgb == DW_CLR_DEFAULT && handle) | 7115 if(backrgb == DW_CLR_DEFAULT && handle) |
7116 { | 7116 { |
7117 RGB rgb = {0}; | 7117 RGB rgb = {0}; |
7118 | 7118 |
7119 if(WinQueryPresParam(handle, PP_BACKGROUNDCOLOR, PP_BACKGROUNDCOLORINDEX, NULL, sizeof(rgb), &rgb, QPF_NOINHERIT | QPF_PURERGBCOLOR | QPF_ID2COLORINDEX)) | 7119 if(WinQueryPresParam(handle, PP_BACKGROUNDCOLOR, PP_BACKGROUNDCOLORINDEX, NULL, sizeof(rgb), &rgb, QPF_NOINHERIT | QPF_PURERGBCOLOR | QPF_ID2COLORINDEX)) |
7120 snprintf(options, 100, "back_rgb=%d_%d_%d", rgb.bRed * 255, rgb.bGreen * 255, rgb.bBlue * 255); | 7120 sprintf(options, "back_rgb=%d_%d_%d", rgb.bRed * 255, rgb.bGreen * 255, rgb.bBlue * 255); |
7121 } | 7121 } |
7122 else if(backrgb & DW_RGB_COLOR) | 7122 else if(backrgb & DW_RGB_COLOR) |
7123 { | 7123 { |
7124 snprintf(options, 100, "back_rgb=%d_%d_%d", (int)DW_RED_VALUE(backrgb) * 255, (int)DW_GREEN_VALUE(backrgb) * 255, (int)DW_BLUE_VALUE(backrgb) * 255); | 7124 sprintf(options, "back_rgb=%d_%d_%d", (int)DW_RED_VALUE(backrgb) * 255, (int)DW_GREEN_VALUE(backrgb) * 255, (int)DW_BLUE_VALUE(backrgb) * 255); |
7125 } | 7125 } |
7126 | 7126 |
7127 /* Read the file header */ | 7127 /* Read the file header */ |
7128 if((err = _gbm_read_header(file, fd, z, &gbm, options)) == 0) | 7128 if((err = _gbm_read_header(file, fd, z, &gbm, options)) == 0) |
7129 break; | 7129 break; |