/* Copyright 1986, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #define NEED_REPLIES #ifdef HAVE_CONFIG_H #include #endif #include "Xlibint.h" Status XAllocColor( register Display *dpy, Colormap cmap, XColor *def) { Status status; xAllocColorReply rep; register xAllocColorReq *req; LockDisplay(dpy); GetReq(AllocColor, req); req->cmap = cmap; req->red = def->red; req->green = def->green; req->blue = def->blue; status = _XReply(dpy, (xReply *) &rep, 0, xTrue); if (status) { def->pixel = rep.pixel; def->red = rep.red; def->green = rep.green; def->blue = rep.blue; } UnlockDisplay(dpy); SyncHandle(); return(status); } libreoffice-5-4 main, development code repositoryroot
summaryrefslogtreecommitdiff
path: root/sw/source/core/ole
AgeCommit message (Expand)AuthorFilesLines
2015-05-20bin/rename-sw-abbreviations.shlibreoffice-5-0-branch-pointChristian Lohmaier1-16/+16
2015-05-19tdf#67421: Prevent unloading objects due to cache fullMike Kaganski1-4/+2
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann1-1/+1
2015-05-05loplugin:staticmethodsNoel Grandin1-1/+1
2015-04-23loplugin:staticmethodsNoel Grandin1-1/+1
2015-04-10convert SfxObjectCreateMode to scoped enumNoel Grandin1-3/+3
2015-04-06sw: use variadic cppu::WeakImplHelperMiklos Vajna1-3/+2
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann1-3/+3
2015-03-24convert sfxlink to enum classNoel Grandin1-1/+1
2015-03-18create new 'enum class' SotClipboardFormatId to unify typesNoel Grandin1-1/+1
2015-03-18convert DocumentSettingId to an enum classNoel Grandin1-1/+1
2015-03-11utl::ConfigItem::Commit() should call ClearModified()Michael Stahl1-2/+3
2014-12-18sw: Use appropriate OUString functions on string constantsStephan Bergmann1-1/+1
2014-12-04Build fix on Windows.Kohei Yoshida1-0/+2