Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,764 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; indent-tabs-mode: nil -*- | ||
|
||
(in-package #:glop-win32) | ||
|
||
|
||
(cffi:define-foreign-library dwm | ||
(:windows "Dwmapi.dll")) | ||
|
||
(cffi:use-foreign-library dwm) | ||
|
||
(cffi:defcfun ("DwmFlush" dwm-flush) :int) | ||
|
||
(cffi:defcfun ("DwmIsCompositionEnabled" %dwm-is-composition-enabled) :int32 | ||
(enabled (:pointer bool))) | ||
|
||
(defun dwm-is-composition-enabled () | ||
(with-foreign-object (p 'bool) | ||
(let ((hr (%dwm-is-composition-enabled p))) | ||
(if (zerop hr) | ||
(not (zerop (mem-ref p 'bool))) | ||
(error "dwm-is-composition-enabled failed 0x~x~%" hr))))) |
Oops, something went wrong.