Commit Graph

1542 Commits

Author SHA1 Message Date
Kovid Goyal
7f3c808e66 Use glfw 3.3 functions for the primary selection
Allows us to drop the dependency on xsel for systems with glfw 3.3
2017-10-17 21:44:56 +05:30
Kovid Goyal
9322b210ff typo 2017-10-17 21:41:33 +05:30
Kovid Goyal
3d7e8e3e84 typo 2017-10-17 20:43:22 +05:30
Kovid Goyal
40d80c7833 Remove note about macOS versions + graphics 2017-10-17 17:59:45 +05:30
Kovid Goyal
e908484491 Also output error number when glewInit() fails
glewGetErrorString() is incomplete/not maintained
2017-10-17 16:47:38 +05:30
Kovid Goyal
25913f77e0 Add a clean action to setup.py 2017-10-17 13:35:54 +05:30
Kovid Goyal
66803e6873 Workaround to get graphics working on Apple's buggy products
Apparently some macOS OpenGL drivers cannot handle using a VAO with
attributes that have different divisors/apply to different shaders. So
use a separate VAO for graphics rendering. This is a small performance hit,
but is the price of supporting substandard computers.
2017-10-17 12:15:52 +05:30
Kovid Goyal
40722f42d3 ... 2017-10-17 10:18:03 +05:30
Kovid Goyal
192b16e9ff Add Lenna to the test dir so the gr.py script becomes self-sufficient 2017-10-17 10:15:38 +05:30
Kovid Goyal
02dc637ed0 Use the correct blend function for text 2017-10-17 09:51:21 +05:30
Kovid Goyal
2aa29f1873 typo 2017-10-16 22:05:29 +05:30
Kovid Goyal
199d5b34a4 Add note about needing High Sierra for graphics 2017-10-16 22:04:05 +05:30
Kovid Goyal
48b98c583e Fix incorrect scrolling of images with specified number of rows 2017-10-16 22:02:55 +05:30
Kovid Goyal
090ee5b846 Disable graphics on older macOS machines
I give up, trying to work around Apple's buggy drivers without even
having a machine to test my workarounds on is too hard. Simply disable
graphics on macOS < 10.13

Fixes #141
2017-10-16 21:23:29 +05:30
Kovid Goyal
55db07c79f Only display Lenna if she exists in the gr script 2017-10-16 18:52:17 +05:30
Kovid Goyal
75e84a4519 Let the gr.pt script run with python2 as well 2017-10-16 18:50:57 +05:30
Kovid Goyal
e679fa9a1c Possible fix for #141
Presumably on older macOS versions the Apple OpenGL drivers cannot handle both
non-sequential and non-zero based binding locations. Sigh.
2017-10-16 18:39:49 +05:30
Kovid Goyal
6f0922d5e3 Merge branch 'master' of https://github.com/eldentyrell/kitty
Fix #143
2017-10-16 16:57:51 +05:30
Elden Tyrell
4663133871 correct off-by-one error in initial tabstops so emacs renders properly 2017-10-16 03:50:11 -07:00
Kovid Goyal
3f8b2184a6 Add a sanity check to ensure the attribute location binding worked 2017-10-13 10:06:12 +05:30
Kovid Goyal
2f7e517b5b Update comment to reflect code 2017-10-12 16:51:35 +05:30
Kovid Goyal
f2e8877032 ... 2017-10-12 16:10:19 +05:30
Kovid Goyal
555409ea73 Apple's OpenGL drivers are sad
Apparently they cant handle non-sequential binding locations. Sigh.
2017-10-12 15:36:38 +05:30
Kovid Goyal
30baf81858 Fix #140 2017-10-12 12:58:38 +05:30
Kovid Goyal
76a591e7d1 ... 2017-10-10 11:34:19 +05:30
Kovid Goyal
57d16a02c0 Update changelog and add some performance comparisons 2017-10-10 09:21:42 +05:30
Kovid Goyal
5c55502946 ... 2017-10-09 15:22:38 +05:30
Kovid Goyal
ef7fa507fb ... 2017-10-09 15:21:33 +05:30
Kovid Goyal
1ceefde2d0 Graphics rendering is now merged into master!
Fix #33
2017-10-09 15:20:15 +05:30
Kovid Goyal
94eaaae4a6 Handle font size changes, rescaling images 2017-10-09 15:15:13 +05:30
Kovid Goyal
3cce238b2b Relayout images on screen resizes
The strategy is very simple, images are not rescaled or re-positioned in
any way.
2017-10-09 12:43:37 +05:30
Kovid Goyal
f9b52249d1 Remove unused code 2017-10-09 11:58:25 +05:30
Kovid Goyal
f396fe59ca Implement a quota for image data 2017-10-09 11:31:57 +05:30
Kovid Goyal
b4b6968e07 Clear the alt screen graphics buffer when switching away from it as well as to it 2017-10-08 23:14:56 +05:30
Kovid Goyal
747f7b076d Implement control code for deleting images 2017-10-08 22:51:00 +05:30
Kovid Goyal
3f9f5ae076 DRYer 2017-10-08 11:48:23 +05:30
Kovid Goyal
2058682d1f ... 2017-10-08 11:46:10 +05:30
Kovid Goyal
201ac973e3 Make clear as also delete images 2017-10-07 16:43:17 +05:30
Kovid Goyal
df87c051bd Add a note about the optional dep on ImageMagick for icat 2017-10-07 11:55:45 +05:30
Kovid Goyal
f76077a45c icat: switch to ImageMagick and also add support for local client speedup by using a file to transmit the data 2017-10-07 11:46:00 +05:30
Kovid Goyal
836e9d98b4 Forgot to actually switch grman on buffer switch 2017-10-07 10:12:16 +05:30
Kovid Goyal
d5088a3e5b Do image clipping using OpenGL rather than on the CPU 2017-10-07 10:08:26 +05:30
Kovid Goyal
3a344d86fe Add graphics protocol detection to icat.py 2017-10-07 09:01:31 +05:30
Kovid Goyal
6a65f23f98 Add a a=q mode for querying without storing image data 2017-10-06 23:43:42 +05:30
Kovid Goyal
9e284442e8 ... 2017-10-06 23:11:14 +05:30
Kovid Goyal
135358423c Remove use of random data in the tests 2017-10-06 22:52:50 +05:30
Kovid Goyal
31173245f8 Send ACKs to client when displaying images by id 2017-10-06 22:39:17 +05:30
Kovid Goyal
ad5a276ddb Fix test broken by clipping of images to screen area 2017-10-06 22:34:21 +05:30
Kovid Goyal
4bc852e615 A spot of refacatoring 2017-10-06 21:36:54 +05:30
Kovid Goyal
d4e493727e Clip all rendered images to screen boundaries 2017-10-06 21:22:52 +05:30